mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
3b92803667
commit
d4a1932276
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue