Skip to content

Commit

Permalink
Merge #1199: Qt disable wallet change in main window
Browse files Browse the repository at this point in the history
Pull request description:

  Disable the ability to change the loaded wallet in the main Qt window as it does not yet properly work with tokens.
  • Loading branch information
dexX7 committed Nov 30, 2020
2 parents fc172d8 + 39e8c5e commit ab0cc4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -694,10 +694,12 @@ void BitcoinGUI::addWallet(WalletModel* walletModel)
setWalletActionsEnabled(true);
rpcConsole->addWallet(walletModel);
m_wallet_selector->addItem(display_name, QVariant::fromValue(walletModel));
/* Disable multiwallet support in main window until update properly for tokens
if (m_wallet_selector->count() == 2) {
m_wallet_selector_label_action->setVisible(true);
m_wallet_selector_action->setVisible(true);
}
*/
}

void BitcoinGUI::removeWallet(WalletModel* walletModel)
Expand Down

0 comments on commit ab0cc4d

Please sign in to comment.