13
0

Mark some menu items insensitive w/o session

When closing a session without loading or creating a new one,
Ardour's main window and menu are accessible.

 Menu > Session > Properties : crash w/o a session
 Menu > Window > Transport Masters : any interaction causes a crash.
This commit is contained in:
Robin Gareus 2020-09-18 21:03:56 +02:00
parent 57c660836f
commit cce424b695
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -528,6 +528,10 @@ ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[], const char* localedir)
WM::Manager::instance().register_window (&plugin_dsp_load_window);
WM::Manager::instance().register_window (&transport_masters_window);
/* session-sensitive windows */
ActionManager::session_sensitive_actions.push_back (ActionManager::get_action (X_("Window"), X_("toggle-session-options-editor")));
ActionManager::session_sensitive_actions.push_back (ActionManager::get_action (X_("Window"), X_("toggle-transport-masters")));
/* do not retain position for add route dialog */
add_route_dialog.set_state_mask (WindowProxy::Size);