ProjectExplorer: Remove outdated check

Change-Id: Ic417c8d6d9bcaf6a1d5c82fc4cd8a6c6f4e5c903
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-10-11 07:33:48 +02:00
parent 96221be3e4
commit be4ffa3495

View File

@@ -359,7 +359,6 @@ FilePath Node::pathOrDirectory(bool dir) const
location = FileUtils::commonPath(list);
}
QTC_CHECK(!location.needsDevice());
QFileInfo fi = location.toFileInfo();
while ((!fi.exists() || !fi.isDir()) && !fi.isRoot() && (fi.fileName() != fi.absolutePath()))
fi.setFile(fi.absolutePath());