mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
prevent debug-build crash caused by trying to use null-pointer
This commit is contained in:
parent
7ac9c7e88a
commit
cf4c300ddd
1 changed files with 3 additions and 1 deletions
|
|
@ -216,7 +216,9 @@ ARDOUR_UI::key_press_focus_accelerator_handler (Gtk::Window& window, GdkEventKey
|
||||||
* top level tab or a top level window)
|
* top level tab or a top level window)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
DEBUG_TRACE (DEBUG::Accelerators, string_compose ("\tusing top level bindings %1 @ %2 for this event\n", top_level_bindings->name(), top_level_bindings));
|
if (top_level_bindings) {
|
||||||
|
DEBUG_TRACE (DEBUG::Accelerators, string_compose ("\tusing top level bindings %1 @ %2 for this event\n", top_level_bindings->name(), top_level_bindings));
|
||||||
|
}
|
||||||
|
|
||||||
if (top_level_bindings && top_level_bindings->activate (k, Bindings::Press)) {
|
if (top_level_bindings && top_level_bindings->activate (k, Bindings::Press)) {
|
||||||
DEBUG_TRACE (DEBUG::Accelerators, "\t\thandled\n");
|
DEBUG_TRACE (DEBUG::Accelerators, "\t\thandled\n");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue