Qt: Fix window geometry on launch when window is still hidden

This commit is contained in:
Jeffrey Pfau 2015-01-09 23:23:31 -08:00
parent 76bf0427f1
commit f0f929665e
1 changed files with 4 additions and 4 deletions

View File

@ -26,15 +26,15 @@ GBAApp::GBAApp(int& argc, char* argv[])
QApplication::setApplicationName(PROJECT_NAME);
QApplication::setApplicationVersion(PROJECT_VERSION);
m_window.show();
GBAArguments args = {};
if (m_configController.parseArguments(&args, argc, argv)) {
m_window.argumentsPassed(&args);
m_window.argumentsPassed(&args);
} else {
m_window.loadConfig();
m_window.loadConfig();
}
freeArguments(&args);
m_window.show();
}
bool GBAApp::event(QEvent* event) {