diff options
author | Arno <am@disconnect.de> | 2013-07-29 10:08:33 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2013-07-29 10:08:33 +0200 |
commit | 06cfadc8386aec27b9c7c43486fc0b057e9fb022 (patch) | |
tree | ca0343db7f3363fb35bd4fc0ea72779651e0361e /newpicsdialog.cpp | |
parent | 28c7436a71910aabcc37945255fb577f7a032f0d (diff) | |
download | SheMov-06cfadc8386aec27b9c7c43486fc0b057e9fb022.tar.gz SheMov-06cfadc8386aec27b9c7c43486fc0b057e9fb022.tar.bz2 SheMov-06cfadc8386aec27b9c7c43486fc0b057e9fb022.zip |
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.
Diffstat (limited to 'newpicsdialog.cpp')
-rw-r--r-- | newpicsdialog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/newpicsdialog.cpp b/newpicsdialog.cpp index 31e14c4..1914219 100644 --- a/newpicsdialog.cpp +++ b/newpicsdialog.cpp @@ -7,10 +7,10 @@ #include <QSqlQuery> #include <QSortFilterProxyModel> -#include <QtWidgets/QPushButton> +#include <QPushButton> #include <QSettings> -#include <QtWidgets/QFileDialog> -#include <QtWidgets/QVBoxLayout> +#include <QFileDialog> +#include <QVBoxLayout> #include "newpicsdialog.h" #include "smtreeitem.h" |