qt: Move SplashFinished to after ClientModel/WalletModel creation

With a large wallet there was a noticable gap between hiding of the
splash and showing the main window.
This commit is contained in:
Wladimir J. van der Laan 2014-07-20 13:49:58 +02:00
parent fb21bf6951
commit 0de61e7585
No known key found for this signature in database
GPG key ID: 74810B012346C9A6

View file

@ -406,8 +406,6 @@ void BitcoinApplication::initializeResult(int retval)
paymentServer->setOptionsModel(optionsModel);
#endif
emit splashFinished(window);
clientModel = new ClientModel(optionsModel);
window->setClientModel(clientModel);
@ -424,6 +422,8 @@ void BitcoinApplication::initializeResult(int retval)
}
#endif
emit splashFinished(window);
// If -min option passed, start window minimized.
if(GetBoolArg("-min", false))
{