X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fqt%2Frpcconsole.cpp;h=7e6ccd6f05bcf98e89e5bc753d0c4229aca3c092;hp=ae74ab32e8dd70f212637def9a47ab2d39b36a10;hb=5e31e12d48299d3f2ece647998a61befc6e9aee6;hpb=70338acb43623e2f1ae88790159eea3647c611d1 diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index ae74ab3..7e6ccd6 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -299,9 +299,12 @@ void RPCConsole::setClientModel(ClientModel *model) for (size_t i = 0; i < commandList.size(); ++i) { wordList << commandList[i].c_str(); + wordList << ("help " + commandList[i]).c_str(); } + 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);