diff options
author | Christopher Roy Bratusek <nano@jpberlin.de> | 2015-04-18 21:21:20 +0200 |
---|---|---|
committer | Christopher Roy Bratusek <nano@jpberlin.de> | 2015-04-18 21:21:20 +0200 |
commit | 7b0f1cb26ed0e64b73562569f16e7a94d449ddc5 (patch) | |
tree | 6911138cc62e61060732ae0979dc18ceeefd4e33 | |
parent | lumina-fm show separated number of folders and files in status bar (diff) | |
download | lumina-7b0f1cb26ed0e64b73562569f16e7a94d449ddc5.tar.gz lumina-7b0f1cb26ed0e64b73562569f16e7a94d449ddc5.tar.bz2 lumina-7b0f1cb26ed0e64b73562569f16e7a94d449ddc5.zip |
use ++ in createStatusBarMgs over += 1
-rw-r--r-- | lumina-fm/BackgroundWorker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lumina-fm/BackgroundWorker.cpp b/lumina-fm/BackgroundWorker.cpp index 76b8ff8c..02d2f02e 100644 --- a/lumina-fm/BackgroundWorker.cpp +++ b/lumina-fm/BackgroundWorker.cpp @@ -97,10 +97,10 @@ void BackgroundWorker::createStatusBarMsg(QFileInfoList fileList, QString path, int numberFiles = 0; for(int i=0; i<fileList.length(); i++){ if(!fileList[i].isDir()){ - numberFiles += 1; + numberFiles++; totalSizes += fileList[i].size(); //in Bytes } - else { numberFolders += 1; } + else { numberFolders++; } } //Convert the size into display units static QStringList units = QStringList() << tr("B") << tr("KB") << tr("MB") << tr("GB") << tr("TB"); |