diff options
Diffstat (limited to 'lumina-fm/MainUI.cpp')
-rw-r--r-- | lumina-fm/MainUI.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lumina-fm/MainUI.cpp b/lumina-fm/MainUI.cpp index 187922e1..1a8612c7 100644 --- a/lumina-fm/MainUI.cpp +++ b/lumina-fm/MainUI.cpp @@ -445,15 +445,11 @@ void MainUI::setCurrentDir(QString dir){ //if(olddir!=rawdir){ emit DirChanged(rawdir); //This will be automatically run when a new dir is loaded //} - if(isUserWritable){ - if (DEBUG) {qDebug() << "# Items:" << fsmod->rootDirectory().entryInfoList().size();} - QString strSize = QString(tr("Items:")) + QString::number(fsmod->rootDirectory().entryInfoList().size()); - ui->label_dir_stats->setText(strSize); - } - else{ - QString strSize = QString(tr("Limited Access Directory. Items:")) + QString::number(fsmod->rootDirectory().entryInfoList().size()); - ui->label_dir_stats->setText(strSize); + if(isUserWritable){ ui->label_dir_stats->setText(""); } + else{ ui->label_dir_stats->setText(tr("Limited Access Directory")); } + QString strSize = QString(tr("Items:")) + QString::number(fsmod->rootDirectory().entryInfoList().size()); + ui->statusbar->showMessage(strSize); ui->tool_addToDir->setVisible(isUserWritable); ui->tool_addNewFile->setVisible(isUserWritable); ui->actionUpDir->setEnabled(dir!="/"); |