Utils: Simplify FilePath::toFileInfo().lastModified() calls

It's the same as FilePath::lastModified locally, and toFileInfo
doesn't work remotely. So it's overall at least not worse.

Change-Id: Ice8d80dcfd01dc38edc1dce2b53e1b5e6274380f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2021-06-17 17:25:38 +02:00
parent 193f485be2
commit c0fe038f93
8 changed files with 12 additions and 12 deletions

View File

@@ -839,7 +839,7 @@ namespace ADS
if (!fi.exists() || fi.copy(workspaceNameToFilePath(clone).toString())) {
d->m_workspaces.insert(1, clone);
d->m_workspaceDateTimes
.insert(clone, workspaceNameToFilePath(clone).toFileInfo().lastModified());
.insert(clone, workspaceNameToFilePath(clone).lastModified());
emit workspaceListChanged();
return true;
}
@@ -918,7 +918,7 @@ namespace ADS
} else {
d->m_workspaces.insert(1, workspaceName);
d->m_workspaceDateTimes.insert(workspaceName,
workspaceNameToFilePath(workspaceName).toFileInfo().lastModified());
workspaceNameToFilePath(workspaceName).lastModified());
d->m_workspaceListDirty = true;
// After importing the workspace, update the workspace list
workspaces();