From c37e2d3d69def753e5b127249b77783cc07bb135 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Fri, 22 Oct 2021 20:59:58 -0400 Subject: [PATCH] Fix entry preview resetting when focusing out of entry view * Fixes #7061 * This bug impacts linux only when clicking in the preview panel. --- src/gui/entry/EntryView.cpp | 6 ------ src/gui/entry/EntryView.h | 1 - 2 files changed, 7 deletions(-) diff --git a/src/gui/entry/EntryView.cpp b/src/gui/entry/EntryView.cpp index fa1deb6d..09362e39 100644 --- a/src/gui/entry/EntryView.cpp +++ b/src/gui/entry/EntryView.cpp @@ -200,12 +200,6 @@ void EntryView::focusInEvent(QFocusEvent* event) QTreeView::focusInEvent(event); } -void EntryView::focusOutEvent(QFocusEvent* event) -{ - emit entrySelectionChanged(nullptr); - QTreeView::focusOutEvent(event); -} - void EntryView::displayGroup(Group* group) { m_model->setGroup(group); diff --git a/src/gui/entry/EntryView.h b/src/gui/entry/EntryView.h index c61fa688..90f37abf 100644 --- a/src/gui/entry/EntryView.h +++ b/src/gui/entry/EntryView.h @@ -59,7 +59,6 @@ signals: protected: void keyPressEvent(QKeyEvent* event) override; void focusInEvent(QFocusEvent* event) override; - void focusOutEvent(QFocusEvent* event) override; void showEvent(QShowEvent* event) override; private slots: