settings->value("generateCache") == "true") {
makeCache("");
}
+ else {
+ _settings->setValue("cached", "false");
+ }
emit settingsChanged();
}
timer.start();
countWords();
+ int lastProg = -1;
+
counter=0;
while (!reader.atEnd() && !stopped) {
cur.exec();
counter++;
int prog = counter*100/_wordsCount;
- if(prog % 5 == 0)
- Q_EMIT updateCachingProgress(prog);
+ if(prog % 5 == 0 && lastProg != prog) {
+ Q_EMIT updateCachingProgress(prog,
+ timer.restart());
+ lastProg = prog;
+ }
}
}