Revert "AccountSettings: Update progress only twice per second. #3014"

This reverts commit 0f33e266ce.

The change was not meant to be merged, see discussion in #3014.
This commit is contained in:
Christian Kamm 2015-04-22 11:46:00 +02:00
parent 96ecdb866d
commit 68bf22f469
2 changed files with 0 additions and 12 deletions

View file

@ -119,8 +119,6 @@ AccountSettings::AccountSettings(QWidget *parent) :
connect(folderMan, SIGNAL(folderListLoaded(Folder::Map)),
this, SLOT(setFolderList(Folder::Map)));
setFolderList(FolderMan::instance()->map());
_lastProgressUpdate.start();
}
void AccountSettings::slotAccountStateChanged(AccountState *newAccountState)
@ -609,15 +607,6 @@ void AccountSettings::slotSetProgress(const QString& folder, const ProgressInfo
return;
}
// Don't update progess too often.
const int msBetweenProgressUpdates = 500;
if (_lastProgressUpdate.elapsed() < msBetweenProgressUpdates) {
qDebug() << "skip progress";
return;
}
_lastProgressUpdate.restart();
if(!progress._lastCompletedItem.isEmpty()
&& Progress::isWarningKind(progress._lastCompletedItem._status)) {
int warnCount = item->data(FolderStatusDelegate::WarningCount).toInt();

View file

@ -98,7 +98,6 @@ private:
QStringList _generalErrors;
bool _wasDisabledBefore;
AccountState *_accountState;
QElapsedTimer _lastProgressUpdate;
private slots:
void slotFolderSyncStateChange();
void slotAccountStateChanged(AccountState*);