renable open from command line

This commit is contained in:
Sébastien Loriot 2012-07-14 08:18:09 +00:00
parent 59431aaff6
commit 003b2fa150
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ int main(int argc, char **argv)
}
mainWindow.load_script(QFileInfo("autostart.js"));
#endif
Q_FOREACH(QString filename, args) {
mainWindow.open(filename);
}
// A Qt Script may have closed the main window
// The following loop launch app.exec() only if there is a visible