ARDOUR_UI::save_ardour_state () checks on entry if the windows exist.
and also uses these pointers below without check..
string current_tab;
int current_page_number = _tabs.get_current_page ();
string current_tab;
int current_page_number = _tabs.get_current_page ();
- if (editor && (current_page_number == _tabs.page_num (editor->contents()))) {
+ if (current_page_number == _tabs.page_num (editor->contents())) {
- } else if (mixer && (current_page_number == _tabs.page_num (mixer->contents()))) {
+ } else if (current_page_number == _tabs.page_num (mixer->contents())) {
- } else if (rc_option_editor && (current_page_number == _tabs.page_num (rc_option_editor->contents()))) {
+ } else if (current_page_number == _tabs.page_num (rc_option_editor->contents())) {
current_tab == "preferences";
}
current_tab == "preferences";
}