Fix crash when pressing "Esc" without a session
Ardour's UI can process a key-binding or emit the Escape() signal without a loaded session or when unloading a session.
This commit is contained in:
parent
85877adf56
commit
29db406512
@ -2562,7 +2562,7 @@ Editor::escape ()
|
||||
{
|
||||
if (_drags->active ()) {
|
||||
_drags->abort ();
|
||||
} else {
|
||||
} else if (_session) {
|
||||
selection->clear ();
|
||||
|
||||
/* if session is playing a range, cancel that */
|
||||
|
Loading…
Reference in New Issue
Block a user