improve reset settings

This commit is contained in:
Brad Hefta-Gaub 2016-04-13 13:18:23 -07:00
parent 93f8cfc80a
commit 67af3917bc
3 changed files with 4 additions and 4 deletions

View file

@ -419,7 +419,7 @@ bool setupEssentials(int& argc, char** argv) {
Setting::preInit();
bool previousSessionCrashed = CrashHandler::checkForAndHandleCrash();
bool previousSessionCrashed = CrashHandler::checkForResetSettings();
CrashHandler::writeRunningMarkerFiler();
qAddPostRoutine(CrashHandler::deleteRunningMarkerFile);

View file

@ -27,7 +27,7 @@
static const QString RUNNING_MARKER_FILENAME = "Interface.running";
bool CrashHandler::checkForAndHandleCrash() {
bool CrashHandler::checkForResetSettings() {
QSettings::setDefaultFormat(QSettings::IniFormat);
QSettings settings;
settings.beginGroup("Developer");
@ -49,7 +49,7 @@ bool CrashHandler::checkForAndHandleCrash() {
handleCrash(action);
}
}
return true;
return wasLikelyCrash;
}
return false;
}

View file

@ -17,7 +17,7 @@
class CrashHandler {
public:
static bool checkForAndHandleCrash();
static bool checkForResetSettings();
static void writeRunningMarkerFiler();
static void deleteRunningMarkerFile();