Skip to content

Commit

Permalink
Fix entry preview resetting when focusing out of entry view
Browse files Browse the repository at this point in the history
* Fixes keepassxreboot#7061
* This bug impacts linux only when clicking in the preview panel.
  • Loading branch information
droidmonkey committed Nov 14, 2021
1 parent 004f2b6 commit c37e2d3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/gui/entry/EntryView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion src/gui/entry/EntryView.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ class EntryView : public QTreeView
protected:
void keyPressEvent(QKeyEvent* event) override;
void focusInEvent(QFocusEvent* event) override;
void focusOutEvent(QFocusEvent* event) override;
void showEvent(QShowEvent* event) override;

private slots:
Expand Down

0 comments on commit c37e2d3

Please sign in to comment.