Changed the way the launcher exits and polished the error handling code

This commit is contained in:
Pieter van der Kloet 2012-06-20 20:43:51 +02:00
parent 7dad67e423
commit 6a2bcddef5
8 changed files with 84 additions and 68 deletions

View file

@ -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;
}