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:
parent
57c660836f
commit
cce424b695
@ -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 (&plugin_dsp_load_window);
|
||||||
WM::Manager::instance().register_window (&transport_masters_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 */
|
/* do not retain position for add route dialog */
|
||||||
add_route_dialog.set_state_mask (WindowProxy::Size);
|
add_route_dialog.set_state_mask (WindowProxy::Size);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user