Commit 376369d4 authored by dt's avatar dt
Browse files

Potential crash fix

The special event filter probably shouldn't eat the enter key if we are
in the editing state.
parent a40094c9
......@@ -75,7 +75,8 @@ void NavigationTreeView::keyPressEvent(QKeyEvent *event)
if ((event->key() == Qt::Key_Return
|| event->key() == Qt::Key_Enter)
&& event->modifiers() == 0
&& currentIndex().isValid()) {
&& currentIndex().isValid()
&& state() != QAbstractItemView::EditingState) {
emit activated(currentIndex());
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment