Skip to content

Commit 4444dbf

Browse files
author
MarcoFalke
committed
gui: Remove un-actionable TODO
1 parent dc5333d commit 4444dbf

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

src/qt/bitcoingui.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,15 +1246,15 @@ void BitcoinGUI::setEncryptionStatus(int status)
12461246
labelWalletEncryptionIcon->setToolTip(tr("Wallet is <b>encrypted</b> and currently <b>unlocked</b>"));
12471247
encryptWalletAction->setChecked(true);
12481248
changePassphraseAction->setEnabled(true);
1249-
encryptWalletAction->setEnabled(false); // TODO: decrypt currently not supported
1249+
encryptWalletAction->setEnabled(false);
12501250
break;
12511251
case WalletModel::Locked:
12521252
labelWalletEncryptionIcon->show();
12531253
labelWalletEncryptionIcon->setPixmap(platformStyle->SingleColorIcon(":/icons/lock_closed").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
12541254
labelWalletEncryptionIcon->setToolTip(tr("Wallet is <b>encrypted</b> and currently <b>locked</b>"));
12551255
encryptWalletAction->setChecked(true);
12561256
changePassphraseAction->setEnabled(true);
1257-
encryptWalletAction->setEnabled(false); // TODO: decrypt currently not supported
1257+
encryptWalletAction->setEnabled(false);
12581258
break;
12591259
}
12601260
}

src/qt/rpcconsole.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,14 @@
3131
#include <QKeyEvent>
3232
#include <QMenu>
3333
#include <QMessageBox>
34-
#include <QScrollBar>
3534
#include <QScreen>
35+
#include <QScrollBar>
3636
#include <QSettings>
3737
#include <QString>
3838
#include <QStringList>
3939
#include <QTime>
4040
#include <QTimer>
4141

42-
// TODO: add a scrollback limit, as there is currently none
43-
// TODO: make it possible to filter out categories (esp debug messages when implemented)
44-
// TODO: receive errors and debug messages through ClientModel
4542

4643
const int CONSOLE_HISTORY = 50;
4744
const int INITIAL_TRAFFIC_GRAPH_MINS = 30;

src/qt/walletmodel.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -304,16 +304,10 @@ WalletModel::EncryptionStatus WalletModel::getEncryptionStatus() const
304304

305305
bool WalletModel::setWalletEncrypted(bool encrypted, const SecureString &passphrase)
306306
{
307-
if(encrypted)
308-
{
309-
// Encrypt
307+
if (encrypted) {
310308
return m_wallet->encryptWallet(passphrase);
311309
}
312-
else
313-
{
314-
// Decrypt -- TODO; not supported yet
315-
return false;
316-
}
310+
return false;
317311
}
318312

319313
bool WalletModel::setWalletLocked(bool locked, const SecureString &passPhrase)

0 commit comments

Comments
 (0)