From 8a1bfd45f49e6d21a7a4b20cf03b536efbea377f Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 24 Nov 2015 11:13:17 -0500 Subject: fix crash caused by missing check on editor->own_window() --- gtk2_ardour/ardour_ui_dialogs.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour') 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; } -- cgit v1.2.3