From b8bad7a3399f2b448f63aae32478d575b73cca2e Mon Sep 17 00:00:00 2001 From: hsoft Date: Wed, 2 Sep 2009 11:14:24 +0000 Subject: [PATCH] [#50 state:fixed] When a ref file is selected, only show info one one side of the details panel. --HG-- extra : convert_revision : svn%3Ac306627e-7827-47d3-bdf0-9a457c9553a1/trunk%40112 --- base/qt/details_table.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/base/qt/details_table.py b/base/qt/details_table.py index 7e9b5c5c..b568e459 100644 --- a/base/qt/details_table.py +++ b/base/qt/details_table.py @@ -51,9 +51,11 @@ class DetailsModel(QAbstractTableModel): def duplicateSelected(self): dupe = self._app.selected_dupe if dupe is None: - return - group = self._app.results.get_group_of_duplicate(dupe) - ref = group.ref + group = None + ref = None + else: + group = self._app.results.get_group_of_duplicate(dupe) + ref = group.ref if group.ref is not dupe else None self._dupe_data = self._data.GetDisplayInfo(dupe, group) self._ref_data = self._data.GetDisplayInfo(ref, group) self.reset()