mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 23:07:59 +01:00
qt, refactor: Drop redundant signalling in WalletView::setWalletModel
This job will be done by WalletFrame::currentWalletSet signal being emitted in the WalletFrame::setCurrentWallet function.
This commit is contained in:
parent
37dcf161d3
commit
fcdc8b0fcb
3 changed files with 0 additions and 7 deletions
|
@ -695,7 +695,6 @@ void BitcoinGUI::addWallet(WalletModel* walletModel)
|
||||||
});
|
});
|
||||||
connect(wallet_view, &WalletView::encryptionStatusChanged, this, &BitcoinGUI::updateWalletStatus);
|
connect(wallet_view, &WalletView::encryptionStatusChanged, this, &BitcoinGUI::updateWalletStatus);
|
||||||
connect(wallet_view, &WalletView::incomingTransaction, this, &BitcoinGUI::incomingTransaction);
|
connect(wallet_view, &WalletView::incomingTransaction, this, &BitcoinGUI::incomingTransaction);
|
||||||
connect(wallet_view, &WalletView::hdEnabledStatusChanged, this, &BitcoinGUI::updateWalletStatus);
|
|
||||||
connect(this, &BitcoinGUI::setPrivacy, wallet_view, &WalletView::setPrivacy);
|
connect(this, &BitcoinGUI::setPrivacy, wallet_view, &WalletView::setPrivacy);
|
||||||
wallet_view->setPrivacy(isPrivacyModeActivated());
|
wallet_view->setPrivacy(isPrivacyModeActivated());
|
||||||
const QString display_name = walletModel->getDisplayName();
|
const QString display_name = walletModel->getDisplayName();
|
||||||
|
|
|
@ -118,10 +118,6 @@ void WalletView::setWalletModel(WalletModel *_walletModel)
|
||||||
|
|
||||||
// Handle changes in encryption status
|
// Handle changes in encryption status
|
||||||
connect(_walletModel, &WalletModel::encryptionStatusChanged, this, &WalletView::encryptionStatusChanged);
|
connect(_walletModel, &WalletModel::encryptionStatusChanged, this, &WalletView::encryptionStatusChanged);
|
||||||
Q_EMIT encryptionStatusChanged();
|
|
||||||
|
|
||||||
// update HD status
|
|
||||||
Q_EMIT hdEnabledStatusChanged();
|
|
||||||
|
|
||||||
// Balloon pop-up for new transaction
|
// Balloon pop-up for new transaction
|
||||||
connect(_walletModel->getTransactionTableModel(), &TransactionTableModel::rowsInserted, this, &WalletView::processNewTransaction);
|
connect(_walletModel->getTransactionTableModel(), &TransactionTableModel::rowsInserted, this, &WalletView::processNewTransaction);
|
||||||
|
|
|
@ -114,8 +114,6 @@ Q_SIGNALS:
|
||||||
void message(const QString &title, const QString &message, unsigned int style);
|
void message(const QString &title, const QString &message, unsigned int style);
|
||||||
/** Encryption status of wallet changed */
|
/** Encryption status of wallet changed */
|
||||||
void encryptionStatusChanged();
|
void encryptionStatusChanged();
|
||||||
/** HD-Enabled status of wallet changed (only possible during startup) */
|
|
||||||
void hdEnabledStatusChanged();
|
|
||||||
/** Notify that a new transaction appeared */
|
/** Notify that a new transaction appeared */
|
||||||
void incomingTransaction(const QString& date, int unit, const CAmount& amount, const QString& type, const QString& address, const QString& label, const QString& walletName);
|
void incomingTransaction(const QString& date, int unit, const CAmount& amount, const QString& type, const QString& address, const QString& label, const QString& walletName);
|
||||||
/** Notify that the out of sync warning icon has been pressed */
|
/** Notify that the out of sync warning icon has been pressed */
|
||||||
|
|
Loading…
Add table
Reference in a new issue