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/editor_snapshots.cc | |
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/editor_snapshots.cc')
-rw-r--r-- | gtk2_ardour/editor_snapshots.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_snapshots.cc b/gtk2_ardour/editor_snapshots.cc index b90737cd08..90521cd07d 100644 --- a/gtk2_ardour/editor_snapshots.cc +++ b/gtk2_ardour/editor_snapshots.cc @@ -89,7 +89,9 @@ EditorSnapshots::selection_changed () return; } + _display.set_sensitive (false); ARDOUR_UI::instance()->load_session (_session->path(), string (snap_name)); + _display.set_sensitive (true); } } |