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:
@@ -72,6 +72,12 @@ void GroupView::dragMoveEvent(QDragMoveEvent* event)
|
||||
}
|
||||
}
|
||||
|
||||
void GroupView::focusInEvent(QFocusEvent* event)
|
||||
{
|
||||
emitGroupChanged();
|
||||
QTreeView::focusInEvent(event);
|
||||
}
|
||||
|
||||
Group* GroupView::currentGroup()
|
||||
{
|
||||
if (currentIndex() == QModelIndex()) {
|
||||
|
||||
Reference in New Issue
Block a user