From b8e6b8ba8b44442ea0bf7cafec6a418cf1fc1cda Mon Sep 17 00:00:00 2001 From: hsoft Date: Wed, 2 Sep 2009 11:08:36 +0000 Subject: [PATCH] [#50 state:port] 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%40111 --- base/py/app_cocoa.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/base/py/app_cocoa.py b/base/py/app_cocoa.py index 7e4e68d3..5e1cb8e6 100644 --- a/base/py/app_cocoa.py +++ b/base/py/app_cocoa.py @@ -101,10 +101,9 @@ class DupeGuru(app.DupeGuru): def RefreshDetailsTable(self,dupe,group): l1 = self._get_display_info(dupe, group, False) - if group is not None: - l2 = self._get_display_info(group.ref, group, False) - else: - l2 = l1 #To have a list of empty '---' values + # we don't want the two sides of the table to display the stats for the same file + ref = group.ref if group is not None and group.ref is not dupe else None + l2 = self._get_display_info(ref, group, False) names = [c['display'] for c in self.data.COLUMNS] self.details_table = zip(names,l1,l2)