Fixes a crash in METM when closing an Editor tab while File browser tab is active, no Issue
This commit is contained in:
parent
8771cf7138
commit
dba8eb65cb
@ -440,7 +440,7 @@ void RTWindow::remEditorPanel (EditorPanel* ep) {
|
||||
|
||||
mainNB->remove_page (*ep);
|
||||
|
||||
if (mainNB->get_current_page () == mainNB->page_num (*bpanel)){
|
||||
if (mainNB->get_current_page () == mainNB->page_num (*bpanel) || mainNB->get_current_page () == mainNB->page_num (*fpanel)){
|
||||
mainNB->set_current_page (mainNB->page_num (*fpanel));
|
||||
set_title_decorated("");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user