forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user