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)
1066
1066
return false ;
1067
1067
}
1068
1068
1069
- void BitcoinGUI::setHDStatus (int hdEnabled)
1069
+ void BitcoinGUI::setHDStatus (bool privkeyDisabled, int hdEnabled)
1070
1070
{
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>" ));
1073
1073
1074
1074
// eventually disable the QLabel to set its opacity to 50%
1075
1075
labelWalletHDStatusIcon->setEnabled (hdEnabled);
@@ -1115,7 +1115,7 @@ void BitcoinGUI::updateWalletStatus()
1115
1115
}
1116
1116
WalletModel * const walletModel = walletView->getWalletModel ();
1117
1117
setEncryptionStatus (walletModel->getEncryptionStatus ());
1118
- setHDStatus (walletModel->wallet ().hdEnabled ());
1118
+ setHDStatus (walletModel->privateKeysDisabled (), walletModel-> wallet ().hdEnabled ());
1119
1119
}
1120
1120
#endif // ENABLE_WALLET
1121
1121
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ public Q_SLOTS:
215
215
@param[in] status current hd enabled status
216
216
@see WalletModel::EncryptionStatus
217
217
*/
218
- void setHDStatus (int hdEnabled);
218
+ void setHDStatus (bool privkeyDisabled, int hdEnabled);
219
219
220
220
public Q_SLOTS:
221
221
bool handlePaymentRequest (const SendCoinsRecipient& recipient);
You can’t perform that action at this time.
0 commit comments