pe cocoa: fixed a bug preventing iPhoto library from being added.

--HG--
extra : convert_revision : svn%3Ac306627e-7827-47d3-bdf0-9a457c9553a1/trunk%4011
This commit is contained in:
hsoft 2009-06-07 06:55:17 +00:00
parent 97872fc086
commit 65692ec2ef
1 changed files with 2 additions and 1 deletions

View File

@ -189,7 +189,8 @@ class DupeGuruPE(app_cocoa.DupeGuru):
def AddDirectory(self, d):
result = app_cocoa.DupeGuru.AddDirectory(self, d)
if (result == 0) and (d == 'iPhoto Library'):
added.update()
[iphotolib] = [dir for dir in self.directories if dir.path == d]
iphotolib.update()
return result
def CopyOrMove(self, dupe, copy, destination, dest_type):