aboutsummaryrefslogtreecommitdiff
path: root/src/qt/rpcconsole.cpp
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-05-29 22:53:25 +0100
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-05-30 23:26:18 +0100
commit2d8ad2f99710a8981e33fe2d6ce834b0076c4e80 (patch)
tree3c7a111ad16c0b20ef2c3ce82f0557811344ff17 /src/qt/rpcconsole.cpp
parent76e2cded477bc483ec610212bdadf21fe35292d4 (diff)
downloadbitcoin-2d8ad2f99710a8981e33fe2d6ce834b0076c4e80.tar.xz
gui: Enable console line edit on setClientModel
Diffstat (limited to 'src/qt/rpcconsole.cpp')
-rw-r--r--src/qt/rpcconsole.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp
index 8b6dcf0445..071a197c3c 100644
--- a/src/qt/rpcconsole.cpp
+++ b/src/qt/rpcconsole.cpp
@@ -677,6 +677,9 @@ void RPCConsole::setClientModel(ClientModel *model)
wordList.sort();
autoCompleter = new QCompleter(wordList, this);
autoCompleter->setModelSorting(QCompleter::CaseSensitivelySortedModel);
+ // ui->lineEdit is initially disabled because running commands is only
+ // possible from now on.
+ ui->lineEdit->setEnabled(true);
ui->lineEdit->setCompleter(autoCompleter);
autoCompleter->popup()->installEventFilter(this);
// Start thread to execute RPC commands.