File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1066,10 +1066,10 @@ bool BitcoinGUI::handlePaymentRequest(const SendCoinsRecipient& recipient)
10661066 return false ;
10671067}
10681068
1069- void BitcoinGUI::setHDStatus (int hdEnabled)
1069+ void BitcoinGUI::setHDStatus (bool privkeyDisabled, int hdEnabled)
10701070{
1071- labelWalletHDStatusIcon->setPixmap (platformStyle->SingleColorIcon (hdEnabled ? " :/icons/hd_enabled" : " :/icons/hd_disabled" ).pixmap (STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
1072- labelWalletHDStatusIcon->setToolTip (hdEnabled ? tr (" HD key generation is <b>enabled</b>" ) : tr (" HD key generation is <b>disabled</b>" ));
1071+ labelWalletHDStatusIcon->setPixmap (platformStyle->SingleColorIcon (privkeyDisabled ? " :/icons/eye " : hdEnabled ? " :/icons/hd_enabled" : " :/icons/hd_disabled" ).pixmap (STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
1072+ labelWalletHDStatusIcon->setToolTip (privkeyDisabled ? tr ( " Private key <b>disabled</b> " ) : hdEnabled ? tr (" HD key generation is <b>enabled</b>" ) : tr (" HD key generation is <b>disabled</b>" ));
10731073
10741074 // eventually disable the QLabel to set its opacity to 50%
10751075 labelWalletHDStatusIcon->setEnabled (hdEnabled);
@@ -1115,7 +1115,7 @@ void BitcoinGUI::updateWalletStatus()
11151115 }
11161116 WalletModel * const walletModel = walletView->getWalletModel ();
11171117 setEncryptionStatus (walletModel->getEncryptionStatus ());
1118- setHDStatus (walletModel->wallet ().hdEnabled ());
1118+ setHDStatus (walletModel->privateKeysDisabled (), walletModel-> wallet ().hdEnabled ());
11191119}
11201120#endif // ENABLE_WALLET
11211121
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ public Q_SLOTS:
215215 @param[in] status current hd enabled status
216216 @see WalletModel::EncryptionStatus
217217 */
218- void setHDStatus (int hdEnabled);
218+ void setHDStatus (bool privkeyDisabled, int hdEnabled);
219219
220220public Q_SLOTS:
221221 bool handlePaymentRequest (const SendCoinsRecipient& recipient);
You can’t perform that action at this time.
0 commit comments