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:
@@ -778,7 +778,7 @@ void DebuggerItemManagerPrivate::autoDetectGdbOrLldbDebuggers(const FilePath &de
|
||||
return titem->m_item.command() == command;
|
||||
};
|
||||
if (DebuggerTreeItem *existingItem = m_model->findItemAtLevel<2>(commandMatches)) {
|
||||
if (command.toFileInfo().lastModified() != existingItem->m_item.lastModified())
|
||||
if (command.lastModified() != existingItem->m_item.lastModified())
|
||||
existingItem->m_item.reinitializeFromFile();
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user