diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-01-12 20:48:06 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-01-12 20:48:06 +0200 |
commit | 3b1e87b4f11658dcc731fa4396a7bee7981f7af0 (patch) | |
tree | 4196f30f17577b70f4953f51b68f66add3562dee /src | |
parent | Update doc/ and move various entries to wiki (diff) | |
download | smolbote-3b1e87b4f11658dcc731fa4396a7bee7981f7af0.tar.xz |
Fix address bar completer deleting url when closing with no item selected
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwindow/widgets/completer.cpp | 3 |
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: |