Commit 4e66baa6 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk
Browse files

HistoryCompleter: Correct reaction for Key_Down



Change-Id: I9b0d56b6f615f567391349404250d05b5c0b9113
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent edf4a975
......@@ -180,7 +180,9 @@ HistoryCompleter::~HistoryCompleter()
bool HistoryCompleter::eventFilter(QObject *obj, QEvent *event)
{
if (event->type() == QEvent::KeyPress && static_cast<QKeyEvent *>(event)->key() == Qt::Key_Down) {
if (event->type() == QEvent::KeyPress &&
static_cast<QKeyEvent *>(event)->key() == Qt::Key_Down &&
static_cast<QLineEdit *>(widget())->text().isEmpty()) {
setCompletionPrefix(QString());
complete();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment