Skip to content

Commit

Permalink
catch exceptions in preferences manager destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Jun 8, 2014
1 parent 9da0b4c commit 55d5a11
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/preferences.cpp
Expand Up @@ -81,12 +81,14 @@ base_manager::base_manager()

base_manager::~base_manager()
{
if (no_preferences_save) return;
try {
if (no_preferences_save) return;

// Set the 'hidden' preferences.
prefs["scroll_threshold"] = mouse_scroll_threshold();
// Set the 'hidden' preferences.
prefs["scroll_threshold"] = mouse_scroll_threshold();

write_preferences();
write_preferences();
} catch (...) {}
}

void write_preferences()
Expand Down

0 comments on commit 55d5a11

Please sign in to comment.