cont'd work & fix bug introduced in 03660573e
[ardour.git] / gtk2_ardour / ardour_ui_dialogs.cc
index a134a19b8fa4d9a303c27017d0fa4653c086d80b..cc0d9f9d242c5ed768f1c7e91d0e1eae3a49437d 100644 (file)
@@ -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 ();
                        }
@@ -922,9 +922,3 @@ ARDOUR_UI::toggle_monitor_section_visibility ()
                        mixer->show_monitor_section (tact->get_active());
        }
 }
-
-void
-ARDOUR_UI::lua_script_manager ()
-{
-       lua_script_window.show ();
-}