mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 04:45:33 +00:00
Fixed Qt exits, this time for all occurrences
This commit is contained in:
parent
dc1fe6fb4d
commit
b320733e45
2 changed files with 10 additions and 7 deletions
|
@ -1015,7 +1015,8 @@ void DataFilesPage::writeConfig(QString profile)
|
|||
Please make sure you have the right permissions and try again.<br>").arg(file.fileName()));
|
||||
msgBox.exec();
|
||||
|
||||
QApplication::exit(1);
|
||||
qApp->exit(1);
|
||||
return;
|
||||
}
|
||||
|
||||
QTextStream in(&file);
|
||||
|
@ -1041,7 +1042,8 @@ void DataFilesPage::writeConfig(QString profile)
|
|||
Please make sure you have the right permissions and try again.<br>").arg(file.fileName()));
|
||||
msgBox.exec();
|
||||
|
||||
QApplication::exit(1);
|
||||
qApp->exit(1);
|
||||
return;
|
||||
}
|
||||
|
||||
file.write(buffer);
|
||||
|
|
|
@ -180,7 +180,7 @@ void GraphicsPage::setupOgre()
|
|||
Make sure you have write access to<br>%1<br><br>")).arg(configDir.path()));
|
||||
msgBox.exec();
|
||||
|
||||
QApplication::exit(1);
|
||||
qApp->exit(1);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -203,7 +203,7 @@ void GraphicsPage::setupOgre()
|
|||
|
||||
qCritical("Error creating Ogre::Root, the error reported was:\n %s", qPrintable(ogreError));
|
||||
|
||||
QApplication::exit(1);
|
||||
qApp->exit(1);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -237,7 +237,7 @@ void GraphicsPage::setupOgre()
|
|||
Please make sure the plugins.cfg file exists and contains a valid rendering plugin.<br>"));
|
||||
msgBox.exec();
|
||||
|
||||
QApplication::exit(1);
|
||||
qApp->exit(1);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -423,7 +423,7 @@ void GraphicsPage::writeConfig()
|
|||
|
||||
qCritical("Error validating configuration");
|
||||
|
||||
QApplication::exit(1);
|
||||
qApp->exit(1);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -449,7 +449,8 @@ void GraphicsPage::writeConfig()
|
|||
|
||||
qCritical("Error saving Ogre configuration, the error reported was:\n %s", qPrintable(ogreError));
|
||||
|
||||
QApplication::exit(1);
|
||||
qApp->exit(1);
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue