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:
parent
39c2b544f0
commit
9218ccb3b2
@ -198,6 +198,10 @@ Editor::track_canvas_motion_notify_event (GdkEventMotion */*event*/)
|
||||
bool
|
||||
Editor::typed_event (ArdourCanvas::Item* item, GdkEvent *event, ItemType type)
|
||||
{
|
||||
if (!session () || session()->loading () || session()->deletion_in_progress ()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
gint ret = FALSE;
|
||||
|
||||
switch (event->type) {
|
||||
|
Loading…
Reference in New Issue
Block a user