From 394cefb2de368d040d8fee2525fb69f14c0b40a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Fri, 16 Aug 2013 17:09:49 +0200 Subject: [PATCH] Sanitize job input --- kcc/KCC_gui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kcc/KCC_gui.py b/kcc/KCC_gui.py index 0b80e94..a258c2e 100644 --- a/kcc/KCC_gui.py +++ b/kcc/KCC_gui.py @@ -152,7 +152,8 @@ class WorkerThread(QtCore.QThread): if GUI.ColorBox.isChecked(): argv.append("--forcecolor") for i in range(GUI.JobList.count()): - currentJobs.append(str(GUI.JobList.item(i).text())) + if GUI.JobList.item(i).icon().isNull(): + currentJobs.append(str(GUI.JobList.item(i).text())) GUI.JobList.clear() for job in currentJobs: time.sleep(0.5)