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
@ -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…
x
Reference in New Issue
Block a user