changeset 95:7c935d3d5b74

Better signify when starting update of checksums.
author Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no>
date Tue, 22 Oct 2013 14:22:00 +0200
parents 93981e675d67
children c7da835ea912
files SqliteDBLink.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/SqliteDBLink.cpp	Tue Oct 22 14:11:50 2013 +0200
+++ b/SqliteDBLink.cpp	Tue Oct 22 14:22:00 2013 +0200
@@ -296,7 +296,6 @@
 
 bool SqliteDBLink::commit()
 {
-  int n = 0;
   OperationType last = None;
   QVariantList paths, sizes, mtimes, hashes;
 
@@ -333,7 +332,9 @@
   while (whatToUpdate.next()) {
     updatePaths << whatToUpdate.value(pathIndex).toString();
   }
+  int n = 0;
   int max = updatePaths.size();
+  emit progressUpdate(0, max);
   QSqlQuery updateChecksum(db);
   updateChecksum.prepare("UPDATE files "
 			 "SET checksum=:checksum "