diff options
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/tagwidget.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/qt-ui/tagwidget.cpp b/qt-ui/tagwidget.cpp index 494a473d0..7ec0472ea 100644 --- a/qt-ui/tagwidget.cpp +++ b/qt-ui/tagwidget.cpp @@ -183,9 +183,8 @@ void TagWidget::keyPressEvent(QKeyEvent *e) { } } if (e->key() == Qt::Key_Tab) { // let's pretend this is a comma instead - QKeyEvent *fakeEvent = new QKeyEvent(e->type(), Qt::Key_Comma, e->modifiers(), QString(",")); - GroupedLineEdit::keyPressEvent(fakeEvent); - delete fakeEvent; + QKeyEvent fakeEvent(e->type(), Qt::Key_Comma, e->modifiers(), QString(",")); + GroupedLineEdit::keyPressEvent(&fakeEvent); } else { GroupedLineEdit::keyPressEvent(e); } |