aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow/widgets/completer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainwindow/widgets/completer.cpp b/src/mainwindow/widgets/completer.cpp
index 578f745..1295fa3 100644
--- a/src/mainwindow/widgets/completer.cpp
+++ b/src/mainwindow/widgets/completer.cpp
@@ -70,7 +70,8 @@ bool Completer::keyPressed(QKeyEvent *event)
case Qt::Key_Enter:
case Qt::Key_Return:
hide();
- emit completionActivated(currentIndex.data().toString());
+ if(currentIndex.row() >= 0)
+ emit completionActivated(currentIndex.data().toString());
break;
default: