Skip to content

Commit

Permalink
Check for settings before applying it.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Dec 14, 2016
1 parent 2a345f6 commit 0af374d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OMEdit/OMEditGUI/Simulation/SimulationDialog.cpp
Expand Up @@ -96,7 +96,8 @@ SimulationDialog::~SimulationDialog()
void SimulationDialog::show(LibraryTreeItem *pLibraryTreeItem, bool isReSimulate, SimulationOptions simulationOptions)
{
/* restore the window geometry. */
if (OptionsDialog::instance()->getGeneralSettingsPage()->getPreserveUserCustomizations()) {
if (OptionsDialog::instance()->getGeneralSettingsPage()->getPreserveUserCustomizations() &&
Utilities::getApplicationSettings()->contains("SimulationDialog/geometry")) {
restoreGeometry(Utilities::getApplicationSettings()->value("SimulationDialog/geometry").toByteArray());
}
mpLibraryTreeItem = pLibraryTreeItem;
Expand Down

0 comments on commit 0af374d

Please sign in to comment.