13
0

Fix crash when clicking on the canvas while un/loading a session.

GTK events are still handled while un/loading a session (e.g display
"Loading" message or showing the splash triggers an event-loop run).
Global canvas elements (e.g. Rulers) may respond to session-specific
actions.
This commit is contained in:
Robin Gareus 2017-04-20 19:41:06 +02:00
parent 39c2b544f0
commit 9218ccb3b2

View File

@ -198,6 +198,10 @@ Editor::track_canvas_motion_notify_event (GdkEventMotion */*event*/)
bool bool
Editor::typed_event (ArdourCanvas::Item* item, GdkEvent *event, ItemType type) Editor::typed_event (ArdourCanvas::Item* item, GdkEvent *event, ItemType type)
{ {
if (!session () || session()->loading () || session()->deletion_in_progress ()) {
return false;
}
gint ret = FALSE; gint ret = FALSE;
switch (event->type) { switch (event->type) {