1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Under Qt, added a 'marked' column thus uncoupling the marked' attribute from the 'filename' column.

Also, added the ability to sort by 'marked' status.
This commit is contained in:
Virgil Dupras
2012-03-16 15:05:52 -04:00
parent 771f22f208
commit 6ee56dc55c
5 changed files with 23 additions and 26 deletions

View File

@@ -139,6 +139,8 @@ class DupeGuru(RegistrableApplication, Broadcaster):
return m.percentage
if key == 'dupe_count':
return 0
if key == 'marked':
return self.results.is_marked(dupe)
r = cmp_value(dupe, key)
if delta and (key in self.result_table.DELTA_COLUMNS):
r -= cmp_value(get_group().ref, key)
@@ -149,6 +151,8 @@ class DupeGuru(RegistrableApplication, Broadcaster):
return group.percentage
if key == 'dupe_count':
return len(group)
if key == 'marked':
return len([dupe for dupe in group.dupes if self.results.is_marked(dupe)])
return cmp_value(group.ref, key)
def _do_delete(self, j, replace_with_hardlinks):