Update Group in Preview Widget when focused

* Fixes #3129
* Also fix out of bounds access when no entries are present in EntryView and up/down arrow pressed
This commit is contained in:
Jonathan White
2019-05-31 07:23:18 -04:00
parent 91283e7c76
commit 96b0ea45dd
4 changed files with 21 additions and 10 deletions

View File

@@ -72,6 +72,12 @@ void GroupView::dragMoveEvent(QDragMoveEvent* event)
}
}
void GroupView::focusInEvent(QFocusEvent* event)
{
emitGroupChanged();
QTreeView::focusInEvent(event);
}
Group* GroupView::currentGroup()
{
if (currentIndex() == QModelIndex()) {