From dd775040be667cfdd424d5d23d0347e237703b76 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Beno=C3=AEt=20Pin?= <benoit.pin@gmail.com>
Date: Mon, 1 Nov 2010 21:40:27 +0100
Subject: [PATCH] =?utf8?q?Bugfixe=20:=20lors=20du=20d=C3=A9marrage=20du=20?=
 =?utf8?q?thread,=20il=20existe=20toujours=20au=20moins=201=20photo=20?=
 =?utf8?q?=C3=A0=20traiter=20(celle=20qui=20vient=20de=20s'ajouter).=20On?=
 =?utf8?q?=20d=C3=A9doublonne.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

---
 ImageManipulationTool.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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()
-- 
2.20.1