From 35ee894634ee9f77a83e8a74a4c3235c2f3aa801 Mon Sep 17 00:00:00 2001 From: Christoph Ebner Date: Sun, 21 Jun 2015 15:29:51 +0200 Subject: [PATCH] Fixed bug where writing to settings file was not exception-save --- main.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index e060aa4..ee3d560 100755 --- a/main.cpp +++ b/main.cpp @@ -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)