From 89eaa06a8c5f437c4819cbe1d5c3cc9bce9c3240 Mon Sep 17 00:00:00 2001 From: Arno Date: Tue, 3 Apr 2018 06:08:49 +0200 Subject: FSWidget: Update free space after gatherData() --- fswidget.cpp | 1 + fswidget.h | 1 + shemov.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/fswidget.cpp b/fswidget.cpp index c3753b1..d3969f0 100644 --- a/fswidget.cpp +++ b/fswidget.cpp @@ -390,6 +390,7 @@ void FSWidget::gatherData(const QString &curDir){ qApp->restoreOverrideCursor(); QString msg = QString(tr("Analyzed %1 files in %2 ms using %3 queries").arg(QString::number(fileCount)).arg(QString::number(timer.elapsed())).arg(QString::number(mQueryCount))); emit message(msg); + emit needRefreshFs(); } void FSWidget::deleteFiles(){ diff --git a/fswidget.h b/fswidget.h index a7ef536..9ff4fd2 100644 --- a/fswidget.h +++ b/fswidget.h @@ -48,6 +48,7 @@ class FSWidget : public QWidget { signals: void message(QString msg); void selectionChanged(int count, qint64 size, qint64 duration); + void needRefreshFs(); private: void setupWidget(); diff --git a/shemov.cpp b/shemov.cpp index 47018b7..539a90a 100644 --- a/shemov.cpp +++ b/shemov.cpp @@ -70,6 +70,7 @@ SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, fla setSize(size); setDuration(duration, false); }); + connect(mFileWidget, &FSWidget::needRefreshFs, this, &SheMov::setFsFree); //experimental splash.showMessage(tr("Creating Movie archive..."), Qt::AlignHCenter, Qt::yellow); -- cgit v1.2.3-70-g09d2