diff options
author | Robin Gareus <robin@gareus.org> | 2017-07-01 03:10:50 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-07-01 03:10:50 +0200 |
commit | 2b1b0aa240f9ae166997e9eb96496459c5c63353 (patch) | |
tree | e212c22af7aa05bf861af29b86589a867c43c086 /gtk2_ardour/ardour_ui.h | |
parent | d421e56fc0d8fafbaa5a11690c6f7c0d728ed4c4 (diff) |
Fix crash when rapidly switching snapshots
ARDOUR_UI::load_session() calls flush_pending() which runs
gtk_main_iteration()s until idle.
If a user selects another snapshot from the sidebar, load_session()
is called again (from a call to load session)
Diffstat (limited to 'gtk2_ardour/ardour_ui.h')
-rw-r--r-- | gtk2_ardour/ardour_ui.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui.h b/gtk2_ardour/ardour_ui.h index b2240ad4ff..6fe52ead7b 100644 --- a/gtk2_ardour/ardour_ui.h +++ b/gtk2_ardour/ardour_ui.h @@ -188,6 +188,7 @@ public: int load_session (const std::string& path, const std::string& snapshot, std::string mix_template = std::string()); bool session_loaded; + bool session_load_in_progress; int build_session (const std::string& path, const std::string& snapshot, ARDOUR::BusProfile&); bool session_is_new() const { return _session_is_new; } |