From 2c022561f692a813b44da39d6ffdcb373aa4c7ba Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 10 Dec 2014 22:10:50 +0100 Subject: Various Bugfixes and cleanups * remove debug statements from SmDirWatcher * Don't crash on parentDir when current Dir is already deleted * Fix PicFilesModel MappingQuery. It needlessly referenced the table pics in FROM causing an expensive full table scan! * Fix findRecursive in PicFilesModel: Stupid typo! * Give SmDirWatcher a separate DB-Connection. One Thread, one Connection * Remove several includes This should have been 6 commits, but that's how debugging works :( --- smdirwatcher.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'smdirwatcher.h') diff --git a/smdirwatcher.h b/smdirwatcher.h index 579a4c3..bf89050 100644 --- a/smdirwatcher.h +++ b/smdirwatcher.h @@ -9,21 +9,11 @@ #define SMDIRWATCHER_H #include -#include #include -#include -#include -#include #include #include -#include -#include class SmTreeItem; -class QSemaphore; -class SmDataColletor; -class AsyncTask; -class Md5Summer; class SmDirWatcher : public QThread { Q_OBJECT @@ -56,6 +46,7 @@ class SmDirWatcher : public QThread { int mBufLen; int mNumFields; bool mExpensiveOps; + QSqlDatabase mDb; }; #endif // SMDIRWATCHER_H -- cgit v1.2.3-70-g09d2