diff options
| author | Philip Kaufmann <[email protected]> | 2012-08-31 09:43:40 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2012-09-02 13:18:34 +0200 |
| commit | af7b88f29fba5d1db109a03dd6e5282fd9da825d (patch) | |
| tree | dfda2af773e7d0d4c4c520da3f1f2556f0688195 | |
| parent | Merge pull request #1771 from luke-jr/bugfix_bip22_mode (diff) | |
| download | discoin-af7b88f29fba5d1db109a03dd6e5282fd9da825d.tar.xz discoin-af7b88f29fba5d1db109a03dd6e5282fd9da825d.zip | |
clear history when using clear button in RPC console
- current code does not clear history, when using the clear button, this
is added
- remove a currently unused variable but add a TODO comment
| -rw-r--r-- | src/qt/rpcconsole.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 7d5b6fed5..5f19f52f0 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -15,12 +15,11 @@ #include <openssl/crypto.h> +// TODO: add a scrollback limit, as there is currently none // TODO: make it possible to filter out categories (esp debug messages when implemented) // TODO: receive errors and debug messages through ClientModel -const int CONSOLE_SCROLLBACK = 50; const int CONSOLE_HISTORY = 50; - const QSize ICON_SIZE(24, 24); const struct { @@ -269,6 +268,8 @@ static QString categoryClass(int category) void RPCConsole::clear() { ui->messagesWidget->clear(); + history.clear(); + historyPtr = 0; ui->lineEdit->clear(); ui->lineEdit->setFocus(); |