mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
751c76a578
commit
b758210c19
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue