diff options
author | Uwe Klotz <uklotz@mixxx.org> | 2019-06-10 21:06:38 +0200 |
---|---|---|
committer | Uwe Klotz <uklotz@mixxx.org> | 2019-06-10 21:08:24 +0200 |
commit | 617be11193a33f79f8ee67966ed0d828cbb3b29e (patch) | |
tree | 16684502097faed3915a9d992d3fb39c32d481fb /src | |
parent | ebfd07fddeb5446795b2df9d964ddfa5b481a0d6 (diff) |
Reset analysis progress display when finished
Diffstat (limited to 'src')
-rw-r--r-- | src/library/analysisfeature.cpp | 2 | ||||
-rw-r--r-- | src/library/dlganalysis.cpp | 4 | ||||
-rw-r--r-- | src/library/dlganalysis.h | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/src/library/analysisfeature.cpp b/src/library/analysisfeature.cpp index ca364b4040..779eed475d 100644 --- a/src/library/analysisfeature.cpp +++ b/src/library/analysisfeature.cpp @@ -138,6 +138,8 @@ void AnalysisFeature::analyzeTracks(QList<TrackId> trackIds) { connect(m_pTrackAnalysisScheduler.get(), &TrackAnalysisScheduler::progress, m_pAnalysisView, &DlgAnalysis::onTrackAnalysisSchedulerProgress); + connect(m_pTrackAnalysisScheduler.get(), &TrackAnalysisScheduler::finished, + m_pAnalysisView, &DlgAnalysis::onTrackAnalysisSchedulerFinished); connect(m_pTrackAnalysisScheduler.get(), &TrackAnalysisScheduler::progress, this, &AnalysisFeature::onTrackAnalysisSchedulerProgress); connect(m_pTrackAnalysisScheduler.get(), &TrackAnalysisScheduler::finished, diff --git a/src/library/dlganalysis.cpp b/src/library/dlganalysis.cpp index 7f85e59c84..c3c123c6da 100644 --- a/src/library/dlganalysis.cpp +++ b/src/library/dlganalysis.cpp @@ -178,6 +178,10 @@ void DlgAnalysis::onTrackAnalysisSchedulerProgress( } } +void DlgAnalysis::onTrackAnalysisSchedulerFinished() { + slotAnalysisActive(false); +} + void DlgAnalysis::showRecentSongs() { m_pAnalysisLibraryTableModel->showRecentSongs(); } diff --git a/src/library/dlganalysis.h b/src/library/dlganalysis.h index d0241368a3..7f8968effe 100644 --- a/src/library/dlganalysis.h +++ b/src/library/dlganalysis.h @@ -43,6 +43,7 @@ class DlgAnalysis : public QWidget, public Ui::DlgAnalysis, public virtual Libra void analyze(); void slotAnalysisActive(bool bActive); void onTrackAnalysisSchedulerProgress(AnalyzerProgress analyzerProgress, int finishedCount, int totalCount); + void onTrackAnalysisSchedulerFinished(); void showRecentSongs(); void showAllSongs(); void installEventFilter(QObject* pFilter); |