Fixes a crash in METM when closing an Editor tab while File browser tab is active, no Issue

This commit is contained in:
Ingo 2014-10-19 13:18:07 +02:00
parent 8771cf7138
commit dba8eb65cb

View File

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