ProjectManager: Use platform slashes in dialog

Change-Id: If9a3248cb94cf8399865750107116529bb747111
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
hjk
2013-11-27 13:02:15 +01:00
parent 4897c4256d
commit 692309849f

View File

@@ -89,8 +89,8 @@ QmakeBuildConfiguration *enableActiveQmakeBuildConfiguration(ProjectExplorer::Ta
void updateBoilerPlateCodeFiles(const AbstractMobileApp *app, const QString &proFile) void updateBoilerPlateCodeFiles(const AbstractMobileApp *app, const QString &proFile)
{ {
const QList<AbstractGeneratedFileInfo> updates = const QList<AbstractGeneratedFileInfo> updates = app->fileUpdates(proFile);
app->fileUpdates(proFile); const QString nativeProFile = QDir::toNativeSeparators(proFile);
if (!updates.empty()) { if (!updates.empty()) {
const QString title = QmakeManager::tr("Update of Generated Files"); const QString title = QmakeManager::tr("Update of Generated Files");
QStringList fileNames; QStringList fileNames;
@@ -100,7 +100,7 @@ void updateBoilerPlateCodeFiles(const AbstractMobileApp *app, const QString &pro
QmakeManager::tr("In project<br><br>%1<br><br>The following files are either " QmakeManager::tr("In project<br><br>%1<br><br>The following files are either "
"outdated or have been modified:<br><br>%2<br><br>Do you want " "outdated or have been modified:<br><br>%2<br><br>Do you want "
"Qt Creator to update the files? Any changes will be lost.") "Qt Creator to update the files? Any changes will be lost.")
.arg(proFile, fileNames.join(QLatin1String(", "))); .arg(nativeProFile, fileNames.join(QLatin1String(", ")));
if (QMessageBox::question(0, title, message, QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) { if (QMessageBox::question(0, title, message, QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) {
QString error; QString error;
if (!app->updateFiles(updates, error)) if (!app->updateFiles(updates, error))