diff options
Diffstat (limited to 'torrentwidget.cpp')
-rw-r--r-- | torrentwidget.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/torrentwidget.cpp b/torrentwidget.cpp index b101598..16e70e8 100644 --- a/torrentwidget.cpp +++ b/torrentwidget.cpp @@ -5,7 +5,6 @@ #include <QPushButton> #include <QFileDialog> #include <QDir> -#include <QLineEdit> #include <QTreeView> #include <QStandardItemModel> #include <QStandardItem> @@ -240,6 +239,7 @@ void TorrentWidget::deleteFiles(){ QString msg = QString(tr("Successfully deleted %1 of %2 file(s)")).arg(QString::number(ctr)).arg(QString::number(sel.count())); emit statusMessage(msg); gatherData(); + emit freeSpaceChanged(mDir->text()); } } @@ -272,6 +272,7 @@ void TorrentWidget::moveFiles(){ QString msg = QString(tr("Successfully moved %1 of %2 file(s)")).arg(QString::number(ctr)).arg(QString::number(sel.count())); emit statusMessage(msg); gatherData(); + emit freeSpaceChanged(mDir->text()); } } @@ -362,6 +363,7 @@ void TorrentWidget::setDir(){ QSettings s; s.setValue("dirs/torrentdir", mDir->text()); gatherData(); + emit freeSpaceChanged(mDir->text()); } void TorrentWidget::copyToClipboard(){ |