diff options
author | Arno <arno@disconnect.de> | 2016-03-20 03:29:10 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2016-03-20 03:29:10 +0100 |
commit | f0f8ee57af0e1f78c3dbc9e049022d08c5e308dc (patch) | |
tree | c1bde29c4e686fb244aa6cacbc54e4fc17d54926 /smdirwatcher.cpp | |
parent | 97ded60e4bd6aea2aecd871d30c21d24caa49bee (diff) | |
download | SheMov-f0f8ee57af0e1f78c3dbc9e049022d08c5e308dc.tar.gz SheMov-f0f8ee57af0e1f78c3dbc9e049022d08c5e308dc.tar.bz2 SheMov-f0f8ee57af0e1f78c3dbc9e049022d08c5e308dc.zip |
Fix queries for InOrigin
Long standing, never noticed bug:
The queries for files_origin were prepared, but never executed!
Diffstat (limited to 'smdirwatcher.cpp')
-rw-r--r-- | smdirwatcher.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/smdirwatcher.cpp b/smdirwatcher.cpp index cb9c6b7..3fec952 100644 --- a/smdirwatcher.cpp +++ b/smdirwatcher.cpp @@ -108,6 +108,7 @@ int SmDirWatcher::presenceData(QString &md5){ QSqlQuery present2Q(mDb); present2Q.prepare("SELECT COUNT(*) from files_origin WHERE cmd5sum = :md5"); present2Q.bindValue(":md5", md5); + present2Q.exec(); while(present2Q.next()){ int c = present2Q.value(0).toInt(); if(c > 0){ @@ -117,6 +118,7 @@ int SmDirWatcher::presenceData(QString &md5){ QSqlQuery present3Q(mDb); present3Q.prepare("SELECT COUNT(*) FROM pics WHERE cmd5sum = :md5"); present3Q.bindValue(":md5", md5); + present3Q.exec(); while(present3Q.next()){ int c = present3Q.value(0).toInt(); if(c > 0){ |