Skip to content

Commit

Permalink
+ fixes #1925: Preferences not kept well
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jan 23, 2015
1 parent c066183 commit 39aa178
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Gui/DlgPreferencesImp.cpp
Expand Up @@ -36,7 +36,7 @@

#include <Base/Exception.h>
#include <Base/Console.h>

#include <App/Application.h>
#include "DlgPreferencesImp.h"
#include "ui_DlgPreferences.h"
#include "PropertyPage.h"
Expand Down Expand Up @@ -242,6 +242,13 @@ void DlgPreferencesImp::applyChanges()
page->saveSettings();
}
}

bool saveParameter = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/General")->
GetBool("SaveUserParameter", true);
if (saveParameter) {
ParameterManager* parmgr = App::GetApplication().GetParameterSet("User parameter");
parmgr->SaveDocument(App::Application::Config()["UserParameter"].c_str());
}
}

void DlgPreferencesImp::showEvent(QShowEvent* ev)
Expand Down

0 comments on commit 39aa178

Please sign in to comment.