Skip to content

Commit 3568b30

Browse files
committed
Merge #9500: [Qt][RPC] Autocomplete commands for 'help' command in debug console
6d8fe35 'help' rpc commands autocomplete (Andrew Chow) Tree-SHA512: 289bc4fa16a1c0291262998caa18556f1c5aa89662c85528606dc03b596b8833a0fb2c5c9c068b6dcf2adb3a136d4f154591d4a95b8c3313638b77355aaed955
2 parents 7b585cf + 6d8fe35 commit 3568b30

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/qt/rpcconsole.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,9 +626,12 @@ void RPCConsole::setClientModel(ClientModel *model)
626626
for (size_t i = 0; i < commandList.size(); ++i)
627627
{
628628
wordList << commandList[i].c_str();
629+
wordList << ("help " + commandList[i]).c_str();
629630
}
630631

632+
wordList.sort();
631633
autoCompleter = new QCompleter(wordList, this);
634+
autoCompleter->setModelSorting(QCompleter::CaseSensitivelySortedModel);
632635
ui->lineEdit->setCompleter(autoCompleter);
633636
autoCompleter->popup()->installEventFilter(this);
634637
// Start thread to execute RPC commands.

0 commit comments

Comments
 (0)