Merge pull request #7659 from ZappoMan/newLODSettings

improve reset settings
This commit is contained in:
Chris Collins 2016-04-13 16:49:22 -07:00
commit 47522e1774
3 changed files with 4 additions and 5 deletions

View file

@ -420,7 +420,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,9 +49,8 @@ bool CrashHandler::checkForAndHandleCrash() {
handleCrash(action);
}
}
return true;
}
return false;
return wasLikelyCrash;
}
CrashHandler::Action CrashHandler::promptUserForAction(bool showCrashMessage) {

View file

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