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:
Robin Gareus 2016-02-28 12:17:57 +01:00
parent 489753e866
commit 78bd97ac9a

View File

@ -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";
}