Skip to content

Commit 2d8ad2f

Browse files
committed
gui: Enable console line edit on setClientModel
1 parent 76e2cde commit 2d8ad2f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/qt/forms/debugwindow.ui

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,9 @@
636636
<property name="placeholderText">
637637
<string/>
638638
</property>
639+
<property name="enabled">
640+
<bool>false</bool>
641+
</property>
639642
</widget>
640643
</item>
641644
</layout>

src/qt/rpcconsole.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,9 @@ void RPCConsole::setClientModel(ClientModel *model)
677677
wordList.sort();
678678
autoCompleter = new QCompleter(wordList, this);
679679
autoCompleter->setModelSorting(QCompleter::CaseSensitivelySortedModel);
680+
// ui->lineEdit is initially disabled because running commands is only
681+
// possible from now on.
682+
ui->lineEdit->setEnabled(true);
680683
ui->lineEdit->setCompleter(autoCompleter);
681684
autoCompleter->popup()->installEventFilter(this);
682685
// Start thread to execute RPC commands.

0 commit comments

Comments
 (0)