mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
If Interface.ini doesn't contain crash option value assume default
This commit is contained in:
parent
a98a867b06
commit
7c8ff4dcbd
1 changed files with 3 additions and 2 deletions
|
@ -35,9 +35,10 @@ void CrashHandler::checkForAndHandleCrash() {
|
|||
QSettings::setDefaultFormat(QSettings::IniFormat);
|
||||
QSettings settings;
|
||||
settings.beginGroup("Developer");
|
||||
bool displayCrashOptions = settings.value(MenuOption::DisplayCrashOptions).toBool();
|
||||
QVariant displayCrashOptions = settings.value(MenuOption::DisplayCrashOptions);
|
||||
settings.endGroup();
|
||||
if (displayCrashOptions) {
|
||||
if (!displayCrashOptions.isValid() // Option does not exist in Interface.ini so assume default behavior.
|
||||
|| displayCrashOptions.toBool()) {
|
||||
Action action = promptUserForAction();
|
||||
if (action != DO_NOTHING) {
|
||||
handleCrash(action);
|
||||
|
|
Loading…
Reference in a new issue