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,6 +26,8 @@ GBAApp::GBAApp(int& argc, char* argv[])
QApplication::setApplicationName(PROJECT_NAME); QApplication::setApplicationName(PROJECT_NAME);
QApplication::setApplicationVersion(PROJECT_VERSION); QApplication::setApplicationVersion(PROJECT_VERSION);
m_window.show();
GBAArguments args = {}; GBAArguments args = {};
if (m_configController.parseArguments(&args, argc, argv)) { if (m_configController.parseArguments(&args, argc, argv)) {
m_window.argumentsPassed(&args); m_window.argumentsPassed(&args);
@ -33,8 +35,6 @@ GBAApp::GBAApp(int& argc, char* argv[])
m_window.loadConfig(); m_window.loadConfig();
} }
freeArguments(&args); freeArguments(&args);
m_window.show();
} }
bool GBAApp::event(QEvent* event) { bool GBAApp::event(QEvent* event) {