diff options
| author | João Barbosa <[email protected]> | 2019-05-29 22:53:25 +0100 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2019-06-07 11:11:56 +0200 |
| commit | 7ed1a601934625a8073324da6e3ec881cec01e05 (patch) | |
| tree | 9c72870a1a29654fcb9993888e6ceb3147be2202 | |
| parent | qt: fix opening bitcoin.conf via Preferences on macOS; see #15409 (diff) | |
| download | discoin-7ed1a601934625a8073324da6e3ec881cec01e05.tar.xz discoin-7ed1a601934625a8073324da6e3ec881cec01e05.zip | |
gui: Enable console line edit on setClientModel
Github-Pull: #16122
Rebased-From: 2d8ad2f99710a8981e33fe2d6ce834b0076c4e80
| -rw-r--r-- | src/qt/forms/debugwindow.ui | 3 | ||||
| -rw-r--r-- | src/qt/rpcconsole.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/qt/forms/debugwindow.ui b/src/qt/forms/debugwindow.ui index f0b976001..70ad32752 100644 --- a/src/qt/forms/debugwindow.ui +++ b/src/qt/forms/debugwindow.ui @@ -636,6 +636,9 @@ <property name="placeholderText"> <string/> </property> + <property name="enabled"> + <bool>false</bool> + </property> </widget> </item> </layout> diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index fc1e14b03..786e36e61 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -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. |