forked from qt-creator/qt-creator
Do not use QDir::separator() for internal paths
Internal paths are supposed to be normalized Change-Id: Ic6943ce13ad389dfdb44054a9e6f03da8c6cd88d Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
704f3d539b
commit
1bcfa137a3
@@ -179,10 +179,8 @@ bool ProjectIntroPage::validate()
|
||||
}
|
||||
|
||||
// Check existence of the directory
|
||||
QString projectDir = path();
|
||||
projectDir += QDir::separator();
|
||||
projectDir += d->m_ui.nameLineEdit->text();
|
||||
const QFileInfo projectDirFile(projectDir);
|
||||
const QFileInfo projectDirFile(path() + QLatin1Char('/')
|
||||
+ QDir::fromNativeSeparators(d->m_ui.nameLineEdit->text()));
|
||||
if (!projectDirFile.exists()) { // All happy
|
||||
hideStatusLabel();
|
||||
return nameValid;
|
||||
|
||||
Reference in New Issue
Block a user