diff options
author | Robin Gareus <robin@gareus.org> | 2018-11-06 22:43:36 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-11-06 23:00:26 +0100 |
commit | a58f7caca133af3ce68f9a1e6aa9c50f61a1bc28 (patch) | |
tree | 41c21b5c9ac52f370f0f21015492ff9324a788ae /gtk2_ardour/sfdb_ui.cc | |
parent | 2bb22d2a14ead4e14bc842237219a893e1226980 (diff) |
Skip updating options for hidden file-dialog
This may also fix an edge-case issue where changing track selection
combined with invalid file selection may trigger a bad_file_message.
Diffstat (limited to 'gtk2_ardour/sfdb_ui.cc')
-rw-r--r-- | gtk2_ardour/sfdb_ui.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk2_ardour/sfdb_ui.cc b/gtk2_ardour/sfdb_ui.cc index fcd8510d92..2c4d5b4db6 100644 --- a/gtk2_ardour/sfdb_ui.cc +++ b/gtk2_ardour/sfdb_ui.cc @@ -855,6 +855,7 @@ void SoundFileBrowser::on_show () { ArdourWindow::on_show (); + reset_options (); start_metering (); } @@ -2028,13 +2029,15 @@ SoundFileOmega::reset (uint32_t selected_audio_tracks, uint32_t selected_midi_tr chooser.set_filter (audio_and_midi_filter); } - reset_options (); + if (is_visible()) { + reset_options (); + } } void SoundFileOmega::file_selection_changed () { - if (resetting_ourselves) { + if (resetting_ourselves || !is_visible ()) { return; } |