13
0

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:
Robin Gareus 2019-02-26 20:08:56 +01:00
parent 85877adf56
commit 29db406512
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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 */