mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-13 10:21:34 +02:00
gui: Enable console line edit on setClientModel
This commit is contained in:
parent
76e2cded47
commit
2d8ad2f997
@ -636,6 +636,9 @@
|
|||||||
<property name="placeholderText">
|
<property name="placeholderText">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
@ -677,6 +677,9 @@ void RPCConsole::setClientModel(ClientModel *model)
|
|||||||
wordList.sort();
|
wordList.sort();
|
||||||
autoCompleter = new QCompleter(wordList, this);
|
autoCompleter = new QCompleter(wordList, this);
|
||||||
autoCompleter->setModelSorting(QCompleter::CaseSensitivelySortedModel);
|
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);
|
ui->lineEdit->setCompleter(autoCompleter);
|
||||||
autoCompleter->popup()->installEventFilter(this);
|
autoCompleter->popup()->installEventFilter(this);
|
||||||
// Start thread to execute RPC commands.
|
// Start thread to execute RPC commands.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user