Don't hide location completion when user types space

Odd that I never noticed this until several people pointed it out to me.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-07-18 13:39:19 -07:00
parent bd4629b293
commit 05109b2d6c

View file

@ -240,7 +240,7 @@ bool LocationManagementEditHelper::eventFilter(QObject *obj, QEvent *ev)
if(ev->type() == QEvent::KeyPress) {
QKeyEvent *keyEv = (QKeyEvent*) ev;
if(keyEv->key() == Qt::Key_Space || keyEv->key() == Qt::Key_Return) {
if(keyEv->key() == Qt::Key_Return) {
handleActivation(view->currentIndex());
view->hide();
return true;