diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-11-24 11:13:17 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-02-22 15:31:25 -0500 |
commit | 8a1bfd45f49e6d21a7a4b20cf03b536efbea377f (patch) | |
tree | 889f66b7f84873c911cc2f77bb3f40bb1f1369cd /gtk2_ardour/ardour_ui_dialogs.cc | |
parent | 6d3ee152fe05ffeb46af2f0d1066d46615832519 (diff) |
fix crash caused by missing check on editor->own_window()
Diffstat (limited to 'gtk2_ardour/ardour_ui_dialogs.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_dialogs.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_ui_dialogs.cc b/gtk2_ardour/ardour_ui_dialogs.cc index 51eabfa849..9618b4c5ca 100644 --- a/gtk2_ardour/ardour_ui_dialogs.cc +++ b/gtk2_ardour/ardour_ui_dialogs.cc @@ -652,7 +652,8 @@ ARDOUR_UI::toggle_meterbridge () obscuring = true; } - if (obscuring && (editor->own_window()->property_has_toplevel_focus() || (mixer->own_window() && mixer->own_window()->property_has_toplevel_focus()))) { + if (obscuring && ((editor->own_window() && editor->own_window()->property_has_toplevel_focus()) || + (mixer->own_window() && mixer->own_window()->property_has_toplevel_focus()))) { show = true; } |