Merge pull request #1767 from Diapolo/RPCCon_clear_history

clear history when using clear button in RPC console
This commit is contained in:
Wladimir J. van der Laan 2012-11-15 22:31:12 -08:00
commit 0c42ee8130

View file

@ -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();