From dba8eb65cb617de61342a5a1c0526a6a94df8db3 Mon Sep 17 00:00:00 2001 From: Ingo Date: Sun, 19 Oct 2014 13:18:07 +0200 Subject: [PATCH] Fixes a crash in METM when closing an Editor tab while File browser tab is active, no Issue --- rtgui/rtwindow.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtgui/rtwindow.cc b/rtgui/rtwindow.cc index d625f053a..8a507c0b7 100644 --- a/rtgui/rtwindow.cc +++ b/rtgui/rtwindow.cc @@ -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(""); }