fix crash caused by missing check on editor->own_window()

This commit is contained in:
Paul Davis 2015-11-24 11:13:17 -05:00
parent 6d3ee152fe
commit 8a1bfd45f4
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}