Unbreak the build against non-default LIBTAR option.

PR:	248721
This commit is contained in:
Alexey Dokuchaev 2020-10-26 08:23:41 +00:00
parent 818030d564
commit 89f5b23f8c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=553324

View File

@ -0,0 +1,19 @@
--- src/gui/src/SoundLibrary/SoundLibraryExportDialog.cpp.orig 2020-08-03 19:45:59 UTC
+++ src/gui/src/SoundLibrary/SoundLibraryExportDialog.cpp
@@ -90,6 +90,7 @@ void SoundLibraryExportDialog::on_exportBtn_clicked()
Drumkit* pDrumkit = nullptr;
QDir qdTempFolder( Filesystem::tmp_dir() );
+ bool TmpFileCreated = false;
int componentID = -1;
@@ -100,6 +101,8 @@ void SoundLibraryExportDialog::on_exportBtn_clicked()
QString temporaryDrumkitXML = qdTempFolder.filePath( "drumkit.xml" );
INFOLOG( "[ExportSoundLibrary]" );
INFOLOG( "Saving temporary file into: " + temporaryDrumkitXML );
+
+ TmpFileCreated = true;
for (std::vector<DrumkitComponent*>::iterator it = pDrumkit->get_components()->begin() ; it != pDrumkit->get_components()->end(); ++it) {
DrumkitComponent* pComponent = *it;