mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
qt: clean up signal handling in walletframe/walletview
Use proper signals everywhere. Removes the need to store a pointer to the BitcoinGUI object in the walletview. Also removes the interdependence between setWalletModel / setBitcoinGUI.
This commit is contained in:
@@ -62,7 +62,7 @@ bool WalletFrame::setCurrentWallet(const QString& name)
|
||||
|
||||
WalletView *walletView = mapWalletViews.value(name);
|
||||
walletStack->setCurrentWidget(walletView);
|
||||
walletView->setEncryptionStatus();
|
||||
walletView->updateEncryptionStatus();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -171,13 +171,6 @@ void WalletFrame::unlockWallet()
|
||||
walletView->unlockWallet();
|
||||
}
|
||||
|
||||
void WalletFrame::setEncryptionStatus()
|
||||
{
|
||||
WalletView *walletView = (WalletView*)walletStack->currentWidget();
|
||||
if (walletView)
|
||||
walletView->setEncryptionStatus();
|
||||
}
|
||||
|
||||
void WalletFrame::usedSendingAddresses()
|
||||
{
|
||||
WalletView *walletView = (WalletView*)walletStack->currentWidget();
|
||||
|
||||
Reference in New Issue
Block a user