summaryrefslogtreecommitdiffstats
path: root/qt-gui.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-03-11 18:11:34 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-11 17:41:41 -0700
commitb758210c193114901fa0698658ef190b2a0d3c94 (patch)
tree53d69a59458c8a2c7316755458bfe002ff6462b6 /qt-gui.cpp
parent751c76a5787c4072da836c27f1af913dc671a52e (diff)
downloadsubsurface-b758210c193114901fa0698658ef190b2a0d3c94.tar.gz
Defer mainwindow->show()
The mainwindow->show(); was being called before we parsed the dives, so in the case of a large dive file, we got a very quick, but spottable, gray background on the profile. The mainwindow->show(); now is called just before the Qt main-loop starts. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r--qt-gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp
index ff875f00d..2b16c2d77 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -151,7 +151,6 @@ void init_ui(int *argcp, char ***argvp)
window = new MainWindow();
window->loadRecentFiles(&s);
- window->show();
if (existing_filename && existing_filename[0] != '\0')
window->setTitle(MWTF_FILENAME);
else
@@ -162,6 +161,7 @@ void init_ui(int *argcp, char ***argvp)
void run_ui(void)
{
+ window->show();
application->exec();
}