Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoingui.cpp
Show First 20 Lines • Show All 772 Lines • ▼ Show 20 Lines | void BitcoinGUI::removeWallet(WalletModel *walletModel) { | ||||
labelWalletHDStatusIcon->hide(); | labelWalletHDStatusIcon->hide(); | ||||
labelWalletEncryptionIcon->hide(); | labelWalletEncryptionIcon->hide(); | ||||
int index = m_wallet_selector->findData(QVariant::fromValue(walletModel)); | int index = m_wallet_selector->findData(QVariant::fromValue(walletModel)); | ||||
m_wallet_selector->removeItem(index); | m_wallet_selector->removeItem(index); | ||||
if (m_wallet_selector->count() == 0) { | if (m_wallet_selector->count() == 0) { | ||||
setWalletActionsEnabled(false); | setWalletActionsEnabled(false); | ||||
overviewAction->setChecked(true); | |||||
} else if (m_wallet_selector->count() == 1) { | } else if (m_wallet_selector->count() == 1) { | ||||
m_wallet_selector_label_action->setVisible(false); | m_wallet_selector_label_action->setVisible(false); | ||||
m_wallet_selector_action->setVisible(false); | m_wallet_selector_action->setVisible(false); | ||||
} | } | ||||
rpcConsole->removeWallet(walletModel); | rpcConsole->removeWallet(walletModel); | ||||
walletFrame->removeWallet(walletModel); | walletFrame->removeWallet(walletModel); | ||||
updateWindowTitle(); | updateWindowTitle(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 863 Lines • Show Last 20 Lines |