diff options
author | Yosef Hamza <jo.adam.93@gmail.com> | 2014-03-23 01:38:39 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-03-23 17:20:03 -0700 |
commit | d4a1932276872954364a33d7f2b3ad0b16a1f38b (patch) | |
tree | 4869eb91a6a0b32331ad4e44106c9775ee41f960 | |
parent | 3b92803667706f894b108e88e5ad134e142a00d4 (diff) | |
download | subsurface-d4a1932276872954364a33d7f2b3ad0b16a1f38b.tar.gz |
Divemaster and Buddy fields auto-completion are not saved
The added characters by auto-completion "for the last item"
isn't saved when using Return to save it "works well with
tab"
Fixes #469
Signed-off-by: Yousef Hamza <jo.adama.93@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/tagwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/tagwidget.cpp b/qt-ui/tagwidget.cpp index a33bd5516..fbebe3f35 100644 --- a/qt-ui/tagwidget.cpp +++ b/qt-ui/tagwidget.cpp @@ -205,7 +205,7 @@ void TagWidget::keyPressEvent(QKeyEvent *e) popup->hide(); } } - if (e->key() == Qt::Key_Tab) { // let's pretend this is a comma instead + if (e->key() == Qt::Key_Tab || e->key() == Qt::Key_Return) { // let's pretend this is a comma instead QKeyEvent fakeEvent(e->type(), Qt::Key_Comma, e->modifiers(), QString(",")); GroupedLineEdit::keyPressEvent(&fakeEvent); } else { |