|
|
@ -53,7 +53,6 @@ static SplashScreen *splashref; |
|
|
|
|
|
|
|
|
|
|
|
static bool ThreadSafeMessageBox(const std::string& message, const std::string& caption, unsigned int style) |
|
|
|
static bool ThreadSafeMessageBox(const std::string& message, const std::string& caption, unsigned int style) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Message from network thread
|
|
|
|
|
|
|
|
if(guiref) |
|
|
|
if(guiref) |
|
|
|
{ |
|
|
|
{ |
|
|
|
bool modal = (style & CClientUIInterface::MODAL); |
|
|
|
bool modal = (style & CClientUIInterface::MODAL); |
|
|
@ -313,11 +312,12 @@ int main(int argc, char *argv[]) |
|
|
|
splash.finish(&window); |
|
|
|
splash.finish(&window); |
|
|
|
|
|
|
|
|
|
|
|
ClientModel clientModel(&optionsModel); |
|
|
|
ClientModel clientModel(&optionsModel); |
|
|
|
|
|
|
|
window.setClientModel(&clientModel); |
|
|
|
|
|
|
|
|
|
|
|
WalletModel *walletModel = 0; |
|
|
|
WalletModel *walletModel = 0; |
|
|
|
if(pwalletMain) |
|
|
|
if(pwalletMain) |
|
|
|
walletModel = new WalletModel(pwalletMain, &optionsModel); |
|
|
|
walletModel = new WalletModel(pwalletMain, &optionsModel); |
|
|
|
|
|
|
|
|
|
|
|
window.setClientModel(&clientModel); |
|
|
|
|
|
|
|
if(walletModel) |
|
|
|
if(walletModel) |
|
|
|
{ |
|
|
|
{ |
|
|
|
window.addWallet("~Default", walletModel); |
|
|
|
window.addWallet("~Default", walletModel); |
|
|
|