|
|
|
@ -151,9 +151,10 @@ static void ShowProgress(SplashScreen *splash, const std::string &title, int nPr
@@ -151,9 +151,10 @@ static void ShowProgress(SplashScreen *splash, const std::string &title, int nPr
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#ifdef ENABLE_WALLET |
|
|
|
|
static void ConnectWallet(SplashScreen *splash, CWallet* wallet) |
|
|
|
|
void SplashScreen::ConnectWallet(CWallet* wallet) |
|
|
|
|
{ |
|
|
|
|
wallet->ShowProgress.connect(boost::bind(ShowProgress, splash, _1, _2)); |
|
|
|
|
wallet->ShowProgress.connect(boost::bind(ShowProgress, this, _1, _2)); |
|
|
|
|
connectedWallets.push_back(wallet); |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
@ -163,7 +164,7 @@ void SplashScreen::subscribeToCoreSignals()
@@ -163,7 +164,7 @@ void SplashScreen::subscribeToCoreSignals()
|
|
|
|
|
uiInterface.InitMessage.connect(boost::bind(InitMessage, this, _1)); |
|
|
|
|
uiInterface.ShowProgress.connect(boost::bind(ShowProgress, this, _1, _2)); |
|
|
|
|
#ifdef ENABLE_WALLET |
|
|
|
|
uiInterface.LoadWallet.connect(boost::bind(ConnectWallet, this, _1)); |
|
|
|
|
uiInterface.LoadWallet.connect(boost::bind(&SplashScreen::ConnectWallet, this, _1)); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -173,8 +174,9 @@ void SplashScreen::unsubscribeFromCoreSignals()
@@ -173,8 +174,9 @@ void SplashScreen::unsubscribeFromCoreSignals()
|
|
|
|
|
uiInterface.InitMessage.disconnect(boost::bind(InitMessage, this, _1)); |
|
|
|
|
uiInterface.ShowProgress.disconnect(boost::bind(ShowProgress, this, _1, _2)); |
|
|
|
|
#ifdef ENABLE_WALLET |
|
|
|
|
if(pwalletMain) |
|
|
|
|
pwalletMain->ShowProgress.disconnect(boost::bind(ShowProgress, this, _1, _2)); |
|
|
|
|
Q_FOREACH(CWallet* const & pwallet, connectedWallets) { |
|
|
|
|
pwallet->ShowProgress.disconnect(boost::bind(ShowProgress, this, _1, _2)); |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|