aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonas Schnelli <[email protected]>2016-03-31 14:13:58 +0200
committerJonas Schnelli <[email protected]>2016-03-31 14:14:04 +0200
commit63832688939f5445289621d0c01f27411253386c (patch)
tree4255edd9a7b20b2a77a60c274b8340538dd5cc0c /src
parentMerge #7747: [docs] added depends cross compile info (diff)
parentClear the input line after activating autocomplete (diff)
downloaddiscoin-63832688939f5445289621d0c01f27411253386c.tar.xz
discoin-63832688939f5445289621d0c01f27411253386c.zip
Merge #7772: Clear the input line after activating autocomplete
ae2156f Clear the input line after activating autocomplete (Pavel Janík)
Diffstat (limited to 'src')
-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 42112c42f..d8647d902 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);
}
}