summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--smdirwatcher.cpp2
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){