diff options
author | Robin Gareus <robin@gareus.org> | 2019-02-26 20:08:56 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-02-26 20:08:56 +0100 |
commit | 29db406512719688c1c7616da337e3e701e789de (patch) | |
tree | d2fd0f1fa3603b939d820c394718ffad12af2fe4 /gtk2_ardour/editor_mouse.cc | |
parent | 85877adf56cd0150cf30f912367b456db8dd8a40 (diff) |
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.
Diffstat (limited to 'gtk2_ardour/editor_mouse.cc')
-rw-r--r-- | gtk2_ardour/editor_mouse.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc index 45e9c38a2f..2798ba4a3c 100644 --- a/gtk2_ardour/editor_mouse.cc +++ b/gtk2_ardour/editor_mouse.cc @@ -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 */ |