cleanup: remove duplicate null checks.
ARDOUR_UI::save_ardour_state () checks on entry if the windows exist. and also uses these pointers below without check..
This commit is contained in:
parent
489753e866
commit
78bd97ac9a
@ -702,11 +702,11 @@ ARDOUR_UI::save_ardour_state ()
|
||||
|
||||
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())) {
|
||||
current_tab = "editor";
|
||||
} else if (mixer && (current_page_number == _tabs.page_num (mixer->contents()))) {
|
||||
} else if (current_page_number == _tabs.page_num (mixer->contents())) {
|
||||
current_tab = "mixer";
|
||||
} 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";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user