Trying to fix the tinyfiledialog zenity integration

This commit is contained in:
brunoherbelin
2021-03-22 16:25:51 +01:00
parent 41bd7fc958
commit 43d44634f7
2 changed files with 7 additions and 5 deletions

View File

@@ -2509,9 +2509,13 @@ void Navigator::RenderNewPannel()
fileImportFileDialogs.pop_back();
fileDialogPending_ = false;
// create a source with this file
std::string label = SystemToolkit::transliterate( open_filename );
label = label.substr( label.size() - MIN( 35, label.size()) );
new_source_preview_.setSource( Mixer::manager().createSourceFile(open_filename), label);
if (open_filename.empty()) {
Log::Notify("No file selected.");
} else {
std::string label = SystemToolkit::transliterate( open_filename );
label = label.substr( label.size() - MIN( 35, label.size()) );
new_source_preview_.setSource( Mixer::manager().createSourceFile(open_filename), label);
}
}
}

View File

@@ -69,8 +69,6 @@ parts:
- gstreamer1.0-plugins-ugly
- libgpm2
- libslang2
zenity-integration:
plugin: nil
stage-snaps:
- zenity-integration