From 59b8b13146d0a244407c51eb3756cf9ff4eee34b Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Sun, 27 Sep 2020 22:17:57 -0400 Subject: Force set entry preview after search ends * Fixes #5093 --- src/gui/DatabaseWidget.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/DatabaseWidget.cpp') diff --git a/src/gui/DatabaseWidget.cpp b/src/gui/DatabaseWidget.cpp index 9a1bd0590..505e7f0ba 100644 --- a/src/gui/DatabaseWidget.cpp +++ b/src/gui/DatabaseWidget.cpp @@ -1427,6 +1427,8 @@ void DatabaseWidget::endSearch() m_entryView->displayGroup(currentGroup()); emit listModeActivated(); m_entryView->setFirstEntryActive(); + // Enforce preview view update (prevents stale information if focus group is empty) + m_previewView->setEntry(currentSelectedEntry()); } m_searchingLabel->setVisible(false); -- cgit v1.2.3