mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Changed the way the launcher exits and polished the error handling code
This commit is contained in:
parent
7dad67e423
commit
6a2bcddef5
8 changed files with 84 additions and 68 deletions
|
@ -1,7 +1,6 @@
|
|||
#include <QApplication>
|
||||
#include <QDir>
|
||||
#include <QFile>
|
||||
#include <QtDebug>
|
||||
|
||||
#include "maindialog.hpp"
|
||||
|
||||
|
@ -32,9 +31,13 @@ int main(int argc, char *argv[])
|
|||
QDir::setCurrent(dir.absolutePath());
|
||||
|
||||
MainDialog mainWin;
|
||||
mainWin.show();
|
||||
|
||||
return app.exec();
|
||||
if (mainWin.setup()) {
|
||||
|
||||
mainWin.show();
|
||||
return app.exec();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue