mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +01:00
gui: Enable console line edit on setClientModel
Github-Pull: #16122
Rebased-From: 2d8ad2f997
This commit is contained in:
@@ -636,6 +636,9 @@
|
||||
<property name="placeholderText">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user