Skip to content

Commit 4f0ae47

Browse files
hebastojarolrod
authored andcommitted
qt: Untie irrelevant signal-slot parameters
QAbstractButton::clicked signal has the `checked` parameter that is irrelevant to RPCConsole::clear slot parameter.
1 parent 590e49c commit 4f0ae47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/rpcconsole.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ RPCConsole::RPCConsole(interfaces::Node& node, const PlatformStyle *_platformSty
494494
ui->lineEdit->setMaxLength(16 * 1024 * 1024);
495495
ui->messagesWidget->installEventFilter(this);
496496

497-
connect(ui->clearButton, &QPushButton::clicked, this, &RPCConsole::clear);
497+
connect(ui->clearButton, &QPushButton::clicked, [this] { clear(/* clearHistory */ false); });
498498
connect(ui->fontBiggerButton, &QPushButton::clicked, this, &RPCConsole::fontBigger);
499499
connect(ui->fontSmallerButton, &QPushButton::clicked, this, &RPCConsole::fontSmaller);
500500
connect(ui->btnClearTrafficGraph, &QPushButton::clicked, ui->trafficGraph, &TrafficGraphWidget::clear);

0 commit comments

Comments
 (0)