mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
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
1 changed files with 3 additions and 3 deletions
|
|
@ -702,11 +702,11 @@ ARDOUR_UI::save_ardour_state ()
|
||||||
|
|
||||||
string current_tab;
|
string current_tab;
|
||||||
int current_page_number = _tabs.get_current_page ();
|
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";
|
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";
|
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";
|
current_tab == "preferences";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue