@@ -1242,6 +1242,14 @@ void LocalDataInterface::autoCleanDB(QSqlDatabase db)
1242
1242
1243
1243
// Add the project in schedule entries data
1244
1244
qry.exec (" SELECT `uuid`, `data` FROM 'RamScheduleEntry' ;" );
1245
+
1246
+ // Count the results to help the progress bar
1247
+ qry.last ();
1248
+ int numRows = qry.at () + 1 ;
1249
+ pm->addToMaximum ( numRows );
1250
+ qDebug () << " Found " << numRows << " RamScheduleEntry..." ;
1251
+ qry.seek (-1 );
1252
+
1245
1253
// To speed up things, keep step/project association
1246
1254
QHash<QString,QString> stepProjectUuids;
1247
1255
QStringList uuidsToRemove;
@@ -1284,6 +1292,9 @@ void LocalDataInterface::autoCleanDB(QSqlDatabase db)
1284
1292
else uuidsToRemove << uuid;
1285
1293
}
1286
1294
1295
+ qDebug () << " Found " << uuidsToRemove.count () << " invalid or empty entries to remove." ;
1296
+ qDebug () << " From " << updateData.count () << " entries to update with the project info." ;
1297
+
1287
1298
// Remove uuids without project
1288
1299
// Split in 250 rows at once
1289
1300
if (!uuidsToRemove.isEmpty ())
@@ -1336,7 +1347,7 @@ void LocalDataInterface::autoCleanDB(QSqlDatabase db)
1336
1347
1337
1348
// Count the results to help the progress bar
1338
1349
qry.last ();
1339
- int numRows = qry.at () + 1 ;
1350
+ numRows = qry.at () + 1 ;
1340
1351
pm->addToMaximum ( numRows );
1341
1352
qDebug () << " Found " << numRows << " RamStatus..." ;
1342
1353
qry.seek (-1 );
0 commit comments