File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed
Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -416,6 +416,11 @@ void MainWindow::ReCheck()
416416{
417417 ClearResults ();
418418 EnableCheckButtons (false );
419+
420+ const int filesCount = mThread ->GetPreviousFilesCount ();
421+ Q_ASSERT (filesCount > 0 ); // If no files should not be able to recheck
422+ mUI .mResults ->CheckingStarted (filesCount);
423+
419424 mThread ->Check (GetCppcheckSettings (), true );
420425}
421426
Original file line number Diff line number Diff line change @@ -173,3 +173,8 @@ bool ThreadHandler::HasPreviousFiles() const
173173
174174 return false ;
175175}
176+
177+ int ThreadHandler::GetPreviousFilesCount () const
178+ {
179+ return mLastFiles .size ();
180+ }
Original file line number Diff line number Diff line change @@ -103,6 +103,13 @@ class ThreadHandler : public QObject
103103 */
104104 bool HasPreviousFiles () const ;
105105
106+ /* *
107+ * @brief Return count of files we checked last time.
108+ *
109+ * @return count of files that were checked last time.
110+ */
111+ int GetPreviousFilesCount () const ;
112+
106113signals:
107114 /* *
108115 * @brief Signal that all threads are done
You can’t perform that action at this time.
0 commit comments