mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
improve reset settings
This commit is contained in:
parent
93f8cfc80a
commit
67af3917bc
3 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
class CrashHandler {
|
||||
|
||||
public:
|
||||
static bool checkForAndHandleCrash();
|
||||
static bool checkForResetSettings();
|
||||
|
||||
static void writeRunningMarkerFiler();
|
||||
static void deleteRunningMarkerFile();
|
||||
|
|
Loading…
Reference in a new issue