X-Git-Url: https://scm.cri.mines-paristech.fr/git/Portfolio.git/blobdiff_plain/2d47c9c3dc8e8265381e167514626f854a2a6f2b..10ff1e0196ea513c9e3d29519d2aab9e8680d7dc:/ImageManipulationTool.py diff --git a/ImageManipulationTool.py b/ImageManipulationTool.py index 4ec31f7..77e3a9a 100755 --- a/ImageManipulationTool.py +++ b/ImageManipulationTool.py @@ -104,7 +104,7 @@ class ImageManipulationTool( UniqueObject, OrderedFolder) : portal = utool.getPortalObject() brains = ctool.unrestrictedSearchResults(portal_type='Photo', tiles_available=0) paths = [b.getPath() for b in brains] - if itemPath is not None : + if itemPath is not None and itemPath not in paths : paths.insert(0, itemPath) thread = ImageQueueProcessorThread(portal.getPhysicalPath(), paths) thread.start()