[#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
This commit is contained in:
hsoft 2009-09-02 11:14:24 +00:00
parent b8e6b8ba8b
commit b8bad7a339
1 changed files with 5 additions and 3 deletions

View File

@ -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()