Fixes issue #415; Instabilities on empty editor in multi tab mode

This commit is contained in:
Oliver Duis
2010-12-17 16:47:21 +01:00
parent faaaac3092
commit 06839d5b1a
2 changed files with 3 additions and 5 deletions

View File

@@ -170,8 +170,7 @@ void RTWindow::on_mainNB_switch_page(GtkNotebookPage* page, guint page_num) {
} else {
if (isSingleTabMode()) {
// Save profile on leaving the editor pane
EditorPanel* ep = (EditorPanel*)mainNB->get_nth_page (mainNB->get_current_page());
ep->saveProfile();
epanel->saveProfile();
MoveFileBrowserToMain();
}