Skip to content

Commit

Permalink
Fixed bug where writing to settings file was not exception-save
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Ebner authored and Christoph Ebner committed Jun 21, 2015
1 parent ef827bd commit 35ee894
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ bool readOutSettingFile(UserInterface& ui, FileManager& filemanager, std::string
} catch (OpenFileException)
{
settings_error_msg = "Created default settings-file \"PoisonConvert_Settings\" in /usr/syno/etc/poisonconvert/. Please check settings-menu.";
filemanager.saveSettingsToFile();
try
{
filemanager.saveSettingsToFile();
}
catch (exception)
{
return false;
}

return false;
} catch (exception)
Expand Down

0 comments on commit 35ee894

Please sign in to comment.