aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Schnelli <dev@jonasschnelli.ch>2016-03-31 14:13:58 +0200
committerJonas Schnelli <dev@jonasschnelli.ch>2016-03-31 14:14:04 +0200
commit63832688939f5445289621d0c01f27411253386c (patch)
tree4255edd9a7b20b2a77a60c274b8340538dd5cc0c
parent209dbeb05f88b23019f7d1612f63f17bad63a268 (diff)
parentae2156f1235eb3c5ba294544ab04b5dd7509c7ce (diff)
Merge #7772: Clear the input line after activating autocomplete
ae2156f Clear the input line after activating autocomplete (Pavel Janík)
-rw-r--r--src/qt/rpcconsole.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp
index 42112c42f1..d8647d902a 100644
--- a/src/qt/rpcconsole.cpp
+++ b/src/qt/rpcconsole.cpp
@@ -459,6 +459,8 @@ void RPCConsole::setClientModel(ClientModel *model)
autoCompleter = new QCompleter(wordList, this);
ui->lineEdit->setCompleter(autoCompleter);
+ // clear the lineEdit after activating from QCompleter
+ connect(autoCompleter, SIGNAL(activated(const QString&)), ui->lineEdit, SLOT(clear()), Qt::QueuedConnection);
}
}