Fixes issue #415; Instabilities on empty editor in multi tab mode
This commit is contained in:
parent
faaaac3092
commit
06839d5b1a
@ -426,15 +426,14 @@ void EditorPanel::close () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void EditorPanel::saveProfile () {
|
void EditorPanel::saveProfile () {
|
||||||
|
if (!ipc || !openThm) return;
|
||||||
|
|
||||||
if (!ipc)
|
|
||||||
return;
|
|
||||||
ProcParams params;
|
ProcParams params;
|
||||||
ipc->getParams (¶ms);
|
ipc->getParams (¶ms);
|
||||||
|
|
||||||
if (options.saveParamsFile)
|
if (options.saveParamsFile)
|
||||||
params.save (openThm->getFileName() + paramFileExtension);
|
params.save (openThm->getFileName() + paramFileExtension);
|
||||||
if (openThm && options.saveParamsCache)
|
if (options.saveParamsCache)
|
||||||
openThm->setProcParams (params, EDITOR);
|
openThm->setProcParams (params, EDITOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -170,8 +170,7 @@ void RTWindow::on_mainNB_switch_page(GtkNotebookPage* page, guint page_num) {
|
|||||||
} else {
|
} else {
|
||||||
if (isSingleTabMode()) {
|
if (isSingleTabMode()) {
|
||||||
// Save profile on leaving the editor pane
|
// Save profile on leaving the editor pane
|
||||||
EditorPanel* ep = (EditorPanel*)mainNB->get_nth_page (mainNB->get_current_page());
|
epanel->saveProfile();
|
||||||
ep->saveProfile();
|
|
||||||
|
|
||||||
MoveFileBrowserToMain();
|
MoveFileBrowserToMain();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user