diff options
| author | Wladimir J. van der Laan <[email protected]> | 2013-10-25 16:10:43 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2013-10-27 08:45:54 +0100 |
| commit | 7d16bb387459de0fbf0cda3a5b97d6032cab1799 (patch) | |
| tree | 7f6c0fe692033ca98835c92a9988a3972ab02e6d /src/qt/walletframe.cpp | |
| parent | Merge pull request #3144 from Diapolo/message_sendcoinsdialog (diff) | |
| download | discoin-7d16bb387459de0fbf0cda3a5b97d6032cab1799.tar.xz discoin-7d16bb387459de0fbf0cda3a5b97d6032cab1799.zip | |
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.
Diffstat (limited to 'src/qt/walletframe.cpp')
| -rw-r--r-- | src/qt/walletframe.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/qt/walletframe.cpp b/src/qt/walletframe.cpp index dd1d69ec3..d2807f465 100644 --- a/src/qt/walletframe.cpp +++ b/src/qt/walletframe.cpp @@ -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(); |