From 06cfadc8386aec27b9c7c43486fc0b057e9fb022 Mon Sep 17 00:00:00 2001 From: Arno Date: Mon, 29 Jul 2013 10:08:33 +0200 Subject: Prevent datacollector from running when operating on files This stuff was racy from the beginning. It could happen that the model got reset after we fetched the selected indexes. Add a mutex and lock it before operating on the file view. Hopefully this will many, if not all random crashes. --- newpicsdialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'newpicsdialog.cpp') diff --git a/newpicsdialog.cpp b/newpicsdialog.cpp index 31e14c4..1914219 100644 --- a/newpicsdialog.cpp +++ b/newpicsdialog.cpp @@ -7,10 +7,10 @@ #include #include -#include +#include #include -#include -#include +#include +#include #include "newpicsdialog.h" #include "smtreeitem.h" -- cgit v1.2.3-70-g09d2