fix thumb browser disappearance if a user changes editor layout to multi tab when on the editor

This commit is contained in:
Andrey Skvortsov
2010-10-07 20:06:19 -07:00
parent 04fcdd40a0
commit 67c85377e3
3 changed files with 40 additions and 21 deletions

View File

@@ -1017,8 +1017,8 @@ void Preferences::savePressed () {
void Preferences::okPressed () {
storePreferences ();
options.copyFrom (&moptions);
workflowUpdate();
options.copyFrom (&moptions);
hide ();
}
@@ -1119,10 +1119,15 @@ void Preferences::switchThemeTo(Glib::ustring newTheme) {
void Preferences::workflowUpdate (){
if(moptions.tabbedUI)
parent->epanel->hide_all();
else
parent->epanel->show_all();
if(moptions.tabbedUI != options.tabbedUI)
{
parent->MoveFileBrowserToMain();
parent->SetMainCurrent();
if(moptions.tabbedUI)
parent->epanel->hide_all();
else
parent->epanel->show_all();
}
}
void Preferences::switchFontTo(Glib::ustring newFont) {