Clear the input line after activating autocomplete

This commit is contained in:
Pavel Janík
2016-03-30 20:26:10 +02:00
committed by lateminer
parent 5383cec50f
commit 0beb087e4c

View File

@@ -453,6 +453,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);
}
}