summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk2_ardour/ardour_ui_dialogs.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/ardour_ui_dialogs.cc b/gtk2_ardour/ardour_ui_dialogs.cc
index 8349683d5d..cc0d9f9d24 100644
--- a/gtk2_ardour/ardour_ui_dialogs.cc
+++ b/gtk2_ardour/ardour_ui_dialogs.cc
@@ -347,7 +347,7 @@ ARDOUR_UI::toggle_editor_and_mixer ()
}
if (editor->tabbed() && !mixer->tabbed()) {
- if (!editor->fully_visible()) {
+ if (main_window_visibility && main_window_visibility->fully_visible()) {
if (_tabs.get_current_page() == _tabs.page_num (editor->contents())) {
mixer->make_visible ();
}
@@ -358,7 +358,7 @@ ARDOUR_UI::toggle_editor_and_mixer ()
}
if (mixer->tabbed () && !editor->tabbed()) {
- if (!editor->fully_visible()) {
+ if (main_window_visibility && main_window_visibility->fully_visible()) {
if (_tabs.get_current_page() == _tabs.page_num (mixer->contents())) {
editor->make_visible ();
}