aboutsummaryrefslogtreecommitdiff
path: root/lumina-fm/BackgroundWorker.cpp
diff options
context:
space:
mode:
authorChristopher Roy Bratusek <nano@jpberlin.de>2015-04-18 21:21:20 +0200
committerChristopher Roy Bratusek <nano@jpberlin.de>2015-04-18 21:21:20 +0200
commit7b0f1cb26ed0e64b73562569f16e7a94d449ddc5 (patch)
tree6911138cc62e61060732ae0979dc18ceeefd4e33 /lumina-fm/BackgroundWorker.cpp
parentlumina-fm show separated number of folders and files in status bar (diff)
downloadlumina-7b0f1cb26ed0e64b73562569f16e7a94d449ddc5.tar.gz
lumina-7b0f1cb26ed0e64b73562569f16e7a94d449ddc5.tar.bz2
lumina-7b0f1cb26ed0e64b73562569f16e7a94d449ddc5.zip
use ++ in createStatusBarMgs over += 1
Diffstat (limited to 'lumina-fm/BackgroundWorker.cpp')
-rw-r--r--lumina-fm/BackgroundWorker.cpp4
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");
bgstack15