forked from qt-creator/qt-creator
Move some FileSystemWatcher usages to FilePath
Change-Id: I72d24ae3f819e429009b0d7e42b21957f07cb00a Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -158,7 +158,7 @@ private:
|
||||
|
||||
CppEditor::CppProjectUpdaterInterface *m_cppCodeModelUpdater = nullptr;
|
||||
|
||||
Utils::FileSystemWatcher m_deployFileWatcher;
|
||||
FileSystemWatcher m_deployFileWatcher;
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -602,9 +602,9 @@ void GenericBuildSystem::updateDeploymentData()
|
||||
deploymentData.addFilesFromDeploymentFile(deploymentFilePath.toString(),
|
||||
projectDirectory().toString());
|
||||
setDeploymentData(deploymentData);
|
||||
if (m_deployFileWatcher.files() != QStringList(deploymentFilePath.toString())) {
|
||||
if (m_deployFileWatcher.filePaths() != FilePaths{deploymentFilePath}) {
|
||||
m_deployFileWatcher.clear();
|
||||
m_deployFileWatcher.addFile(deploymentFilePath.toString(),
|
||||
m_deployFileWatcher.addFile(deploymentFilePath,
|
||||
FileSystemWatcher::WatchModifiedDate);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user