Skip to content

Commit

Permalink
gui: Enable console line edit on setClientModel
Browse files Browse the repository at this point in the history
Github-Pull: bitcoin#16122
Rebased-From: 2d8ad2f
  • Loading branch information
promag authored and MarcoFalke committed Jun 7, 2019
1 parent b55cbe8 commit 7ed1a60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/qt/forms/debugwindow.ui
Expand Up @@ -636,6 +636,9 @@
<property name="placeholderText">
<string/>
</property>
<property name="enabled">
<bool>false</bool>
</property>
</widget>
</item>
</layout>
Expand Down
3 changes: 3 additions & 0 deletions src/qt/rpcconsole.cpp
Expand Up @@ -680,6 +680,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.
Expand Down

0 comments on commit 7ed1a60

Please sign in to comment.