From d4a1932276872954364a33d7f2b3ad0b16a1f38b Mon Sep 17 00:00:00 2001 From: Yosef Hamza Date: Sun, 23 Mar 2014 01:38:39 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/tagwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui') 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 { -- cgit v1.2.3-70-g09d2