aboutsummaryrefslogtreecommitdiff
path: root/src/qt/rpcconsole.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2012-11-15 22:31:12 -0800
committerWladimir J. van der Laan <laanwj@gmail.com>2012-11-15 22:31:12 -0800
commit0c42ee813024b9cbe458865dc50952019f6d6d7d (patch)
tree60bb78de51f3100b0d4db6a9392630cee90386e5 /src/qt/rpcconsole.cpp
parent3ef292dc7db571b9eb35f2148d76bac4ae841796 (diff)
parentaf7b88f29fba5d1db109a03dd6e5282fd9da825d (diff)
downloadbitcoin-0c42ee813024b9cbe458865dc50952019f6d6d7d.tar.xz
Merge pull request #1767 from Diapolo/RPCCon_clear_history
clear history when using clear button in RPC console
Diffstat (limited to 'src/qt/rpcconsole.cpp')
-rw-r--r--src/qt/rpcconsole.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp
index 2b8a0c049b..3dc32d0e47 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 {
@@ -289,6 +288,8 @@ static QString categoryClass(int category)
void RPCConsole::clear()
{
ui->messagesWidget->clear();
+ history.clear();
+ historyPtr = 0;
ui->lineEdit->clear();
ui->lineEdit->setFocus();