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 :( --- newpicsdialog.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'newpicsdialog.cpp') diff --git a/newpicsdialog.cpp b/newpicsdialog.cpp index e665f3b..f6057c0 100644 --- a/newpicsdialog.cpp +++ b/newpicsdialog.cpp @@ -174,9 +174,7 @@ void NewPicsDialog::accept(){ foreach(QVariant mpid, mappingParentsIds){ addMappingQ.bindValue(":mapid", mpid); addMappingQ.bindValue(":md5", d.md5sum); - if(!addMappingQ.exec()){ - return; - } + addMappingQ.exec(); } mFilesModel->clear(); } -- cgit v1.2.3-70-g09d2