X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fqt%2Frpcconsole.cpp;h=c793bf9856e675616dd1c69a567e76471f95543f;hb=1b05f26482ec86f9446553c2cc77e1a059b49244;hp=89d06f60e149cbddb63cbc2397226d23d654edd1;hpb=c5b826dfebb15adf915ddb9e708362fb219df2c7;p=novacoin.git diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 89d06f6..c793bf9 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -20,7 +20,6 @@ // 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); @@ -271,7 +270,7 @@ void RPCConsole::setClientModel(ClientModel *model) connect(model, SIGNAL(numConnectionsChanged(int)), this, SLOT(setNumConnections(int))); connect(model, SIGNAL(numBlocksChanged(int,int)), this, SLOT(setNumBlocks(int,int))); - updateTrafficStats(model->getTotalBytesRecv(), model->getTotalBytesSent()); + updateTrafficStats(model->getTotalBytesRecv(), model->getTotalBytesSent()); connect(model, SIGNAL(bytesChanged(quint64,quint64)), this, SLOT(updateTrafficStats(quint64, quint64))); // Provide initial values ui->clientVersion->setText(model->formatFullVersion()); @@ -300,6 +299,8 @@ static QString categoryClass(int category) void RPCConsole::clear() { ui->messagesWidget->clear(); + history.clear(); + historyPtr = 0; ui->lineEdit->clear(); ui->lineEdit->setFocus();