mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Merge #16122: gui: Enable console line edit on setClientModel
2d8ad2f997 gui: Enable console line edit on setClientModel (João Barbosa)
Pull request description:
Make console line edit disable by default, and only enable once `RPCConsole::setClientModel` is called.
Fixes #16119.
ACKs for commit 2d8ad2:
fanquake:
tACK https://github.com/bitcoin/bitcoin/pull/16122/commits/2d8ad2f99710a8981e33fe2d6ce834b0076c4e80 on macOS.
Tree-SHA512: 1418ce3c120c08e5ec3e7a7a063572a24402ce0ec541bd4adc21f61d60c4e86b711e82e940ebf5f0445ab861f89c146c2a2e7990fb52bed2c65fc199a1981f71
This commit is contained in:
commit
c3723c80da
2 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue