diff options
-rw-r--r-- | filewidget.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/filewidget.cpp b/filewidget.cpp index d1600f6..31dfa92 100644 --- a/filewidget.cpp +++ b/filewidget.cpp @@ -861,11 +861,13 @@ void FileWidget::deleteFiles(){ } const QString msg = QString(tr("Really delete %1 file(s)?")).arg(QString::number(selFiles.count())); int retval = QMessageBox::question(this, tr("Delete files..."), msg); + QString curDir; if(retval == QMessageBox::Yes){ QStringList removed; for(const QModelIndex& idx : selFiles){ QString path = idx.data(FullPathRole).toString(); QFileInfo fi(path); + curDir = fi.absolutePath(); bool success = false; if(fi.isDir()){ QDir d(fi.absoluteFilePath()); @@ -889,6 +891,7 @@ void FileWidget::deleteFiles(){ mModel->removeRow(res.at(0)->row()); } } + emit freeSpaceChanged(curDir); } } |