Use the timer based exit.

Was caught in exec(). Apparently, on Windows an exit()
cannot be scheduled before exec was called. Since
a timer based exit was already implemented, use that.
1.0
Alessandro Portale 2010-12-28 00:26:08 +01:00
parent e5062741a7
commit bb355db6c4
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ void Phantom::execute(const QString &fileName)
file.setFileName(fileName);
if (!file.open(QFile::ReadOnly)) {
std::cerr << "Can't open " << qPrintable(fileName) << std::endl << std::endl;
QApplication::instance()->exit(1);
exit(1);
return;
}
m_script = file.readAll();