Merge pull request #752 from UdjinM6/fixAutocompleter

Clear the input line after activating autocomplete
This commit is contained in:
evan82 2016-04-05 10:52:02 -07:00
commit 5fc47d4c7b

View File

@ -474,6 +474,8 @@ void RPCConsole::setClientModel(ClientModel *model)
autoCompleter = new QCompleter(wordList, this);
ui->lineEdit->setCompleter(autoCompleter);
// clear the lineEdit after activating from QCompleter
connect(autoCompleter, SIGNAL(activated(const QString&)), ui->lineEdit, SLOT(clear()), Qt::QueuedConnection);
}
}