mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
[#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:
parent
b8e6b8ba8b
commit
b8bad7a339
@ -51,9 +51,11 @@ class DetailsModel(QAbstractTableModel):
|
|||||||
def duplicateSelected(self):
|
def duplicateSelected(self):
|
||||||
dupe = self._app.selected_dupe
|
dupe = self._app.selected_dupe
|
||||||
if dupe is None:
|
if dupe is None:
|
||||||
return
|
group = None
|
||||||
|
ref = None
|
||||||
|
else:
|
||||||
group = self._app.results.get_group_of_duplicate(dupe)
|
group = self._app.results.get_group_of_duplicate(dupe)
|
||||||
ref = group.ref
|
ref = group.ref if group.ref is not dupe else None
|
||||||
self._dupe_data = self._data.GetDisplayInfo(dupe, group)
|
self._dupe_data = self._data.GetDisplayInfo(dupe, group)
|
||||||
self._ref_data = self._data.GetDisplayInfo(ref, group)
|
self._ref_data = self._data.GetDisplayInfo(ref, group)
|
||||||
self.reset()
|
self.reset()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user