Android: Avoid QFileInfo use in createandroidmanifestwizard.cpp

Change-Id: Iedbb2b403f00c7fe21bf81f89366bb62c71dcf01
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
hjk
2022-09-27 08:41:53 +02:00
parent 5eae2a2c42
commit f2783901d0

View File

@@ -172,10 +172,10 @@ void ChooseDirectoryPage::checkPackageSourceDir()
{
const QString buildKey = m_wizard->buildKey();
const BuildTargetInfo bti = m_wizard->buildSystem()->buildTarget(buildKey);
const QString projectDir = bti.projectFilePath.toFileInfo().absolutePath();
const FilePath projectDir = bti.projectFilePath.absolutePath();
const QString newDir = m_androidPackageSourceDir->filePath().toString();
bool isComplete = QFileInfo(projectDir) != QFileInfo(newDir);
const FilePath newDir = m_androidPackageSourceDir->filePath();
bool isComplete = projectDir.canonicalPath() != newDir.canonicalPath();
m_sourceDirectoryWarning->setVisible(!isComplete);