Fix EntryView not emitting activated() signals on return key press.
AutoTypeSelectDialog relies on this behavior.
This commit is contained in:
@@ -53,11 +53,10 @@ EntryView::EntryView(QWidget* parent)
|
||||
void EntryView::keyPressEvent(QKeyEvent* event)
|
||||
{
|
||||
if ((event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return) && currentIndex().isValid()) {
|
||||
Q_EMIT emitEntryActivated(currentIndex());
|
||||
}
|
||||
else {
|
||||
QTreeView::keyPressEvent(event);
|
||||
emitEntryActivated(currentIndex());
|
||||
}
|
||||
|
||||
QTreeView::keyPressEvent(event);
|
||||
}
|
||||
|
||||
void EntryView::setGroup(Group* group)
|
||||
|
||||
Reference in New Issue
Block a user