Fixed #1831 (GUI: no progress bar when rechecking files)
Need to initialize the checking also when rechecking.
This commit is contained in:
parent
a1793edabe
commit
f60a469932
|
@ -416,6 +416,11 @@ void MainWindow::ReCheck()
|
||||||
{
|
{
|
||||||
ClearResults();
|
ClearResults();
|
||||||
EnableCheckButtons(false);
|
EnableCheckButtons(false);
|
||||||
|
|
||||||
|
const int filesCount = mThread->GetPreviousFilesCount();
|
||||||
|
Q_ASSERT(filesCount > 0); // If no files should not be able to recheck
|
||||||
|
mUI.mResults->CheckingStarted(filesCount);
|
||||||
|
|
||||||
mThread->Check(GetCppcheckSettings(), true);
|
mThread->Check(GetCppcheckSettings(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -173,3 +173,8 @@ bool ThreadHandler::HasPreviousFiles() const
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int ThreadHandler::GetPreviousFilesCount() const
|
||||||
|
{
|
||||||
|
return mLastFiles.size();
|
||||||
|
}
|
||||||
|
|
|
@ -103,6 +103,13 @@ public:
|
||||||
*/
|
*/
|
||||||
bool HasPreviousFiles() const;
|
bool HasPreviousFiles() const;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Return count of files we checked last time.
|
||||||
|
*
|
||||||
|
* @return count of files that were checked last time.
|
||||||
|
*/
|
||||||
|
int GetPreviousFilesCount() const;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
/**
|
/**
|
||||||
* @brief Signal that all threads are done
|
* @brief Signal that all threads are done
|
||||||
|
|
Loading…
Reference in New Issue