diff --git a/src/plugins/coreplugin/basefilewizard.cpp b/src/plugins/coreplugin/basefilewizard.cpp
index 054e560bd8a3018c0202f633b88e21bd907b3f56..96dfcba38a0b68555dadf525897a42b603c0d859 100644
--- a/src/plugins/coreplugin/basefilewizard.cpp
+++ b/src/plugins/coreplugin/basefilewizard.cpp
@@ -72,7 +72,7 @@ public:
 };
 
 GeneratedFilePrivate::GeneratedFilePrivate(const QString &p) :
-    path(p),
+    path(QDir::cleanPath(p)),
     binary(false),
     attributes(0)
 {
@@ -111,7 +111,7 @@ QString GeneratedFile::path() const
 
 void GeneratedFile::setPath(const QString &p)
 {
-    m_d->path = p;
+    m_d->path = QDir::cleanPath(p);
 }
 
 QString GeneratedFile::contents() const
@@ -628,7 +628,7 @@ bool BaseFileWizard::postGenerateOpenEditors(const GeneratedFiles &l, QString *e
         if (file.attributes() & Core::GeneratedFile::OpenEditorAttribute) {
             if (!em->openEditor(file.path(), file.editorId(), Core::EditorManager::ModeSwitch )) {
                 if (errorMessage)
-                    *errorMessage = tr("Failed to open an editor for '%1'.").arg(file.path());
+                    *errorMessage = tr("Failed to open an editor for '%1'.").arg(QDir::toNativeSeparators(file.path()));
                 return false;
             }
         }
@@ -663,7 +663,7 @@ BaseFileWizard::OverwriteResult BaseFileWizard::promptOverwrite(const QStringLis
         if (fi.exists()) {
             if (!fileNamesMsgPart.isEmpty())
                 fileNamesMsgPart += QLatin1String(", ");
-            fileNamesMsgPart += fileName.mid(commonExistingPath.size() + 1);
+            fileNamesMsgPart += QDir::toNativeSeparators(fileName.mid(commonExistingPath.size() + 1));
             do {
                 if (fi.isDir()) {
                     oddStuffFound = true;
@@ -687,13 +687,14 @@ BaseFileWizard::OverwriteResult BaseFileWizard::promptOverwrite(const QStringLis
         return OverwriteOk;
 
     if (oddStuffFound) {
-        *errorMessage = tr("The project directory %1 contains files which cannot be overwritten:\n%2.").arg(commonExistingPath).arg(fileNamesMsgPart);
+        *errorMessage = tr("The project directory %1 contains files which cannot be overwritten:\n%2.")
+                .arg(QDir::toNativeSeparators(commonExistingPath)).arg(fileNamesMsgPart);
         return OverwriteError;
     }
 
     const QString messageFormat = tr("The following files already exist in the directory %1:\n"
                                      "%2.\nWould you like to overwrite them?");
-    const QString message = messageFormat.arg(commonExistingPath).arg(fileNamesMsgPart);
+    const QString message = messageFormat.arg(QDir::toNativeSeparators(commonExistingPath)).arg(fileNamesMsgPart);
     const bool yes = (QMessageBox::question(Core::ICore::instance()->mainWindow(),
                                             tr("Existing files"), message,
                                             QMessageBox::Yes | QMessageBox::No,
diff --git a/src/plugins/debugger/gdb/attachgdbadapter.cpp b/src/plugins/debugger/gdb/attachgdbadapter.cpp
index 1de5c646e66710242dba32b0f852c77993f4f745..e65a15a75c14d1cabefd4292675f01ecf7603853 100644
--- a/src/plugins/debugger/gdb/attachgdbadapter.cpp
+++ b/src/plugins/debugger/gdb/attachgdbadapter.cpp
@@ -78,7 +78,7 @@ void AttachGdbAdapter::runEngine()
 {
     QTC_ASSERT(state() == EngineRunRequested, qDebug() << state());
     m_engine->notifyEngineRunAndInferiorStopOk();
-    m_engine->continueInferiorInternal();
+    //m_engine->continueInferiorInternal();
     m_engine->showStatusMessage(tr("Attached to process %1.")
         .arg(m_engine->inferiorPid()));
 }
diff --git a/src/plugins/projectexplorer/customwizard/customwizard.cpp b/src/plugins/projectexplorer/customwizard/customwizard.cpp
index b3feff908bf27ac7f067a517f582457a55e63e58..dbc6878f5206d1abd0848b203c913a983f562ea8 100644
--- a/src/plugins/projectexplorer/customwizard/customwizard.cpp
+++ b/src/plugins/projectexplorer/customwizard/customwizard.cpp
@@ -148,7 +148,7 @@ static inline bool createFile(Internal::CustomWizardFile cwFile,
     const QString sourcePath = sourceDirectory + slash + cwFile.source;
     // Field replacement on target path
     Internal::CustomWizardContext::replaceFields(fm, &cwFile.target);
-    const QString targetPath = QDir::toNativeSeparators(targetDirectory + slash + cwFile.target);
+    const QString targetPath = targetDirectory + slash + cwFile.target;
     if (CustomWizardPrivate::verbose)
         qDebug() << "generating " << targetPath << sourcePath << fm;
 
@@ -533,7 +533,8 @@ bool CustomProjectWizard::postGenerateOpen(const Core::GeneratedFiles &l, QStrin
         if (file.attributes() & Core::GeneratedFile::OpenProjectAttribute) {
             if (!ProjectExplorer::ProjectExplorerPlugin::instance()->openProject(file.path())) {
                 if (errorMessage)
-                    *errorMessage = tr("The project %1 could not be opened.").arg(file.path());
+                    *errorMessage = tr("The project %1 could not be opened.").
+                                    arg(QDir::toNativeSeparators(file.path()));
                 return false;
             }
         }
diff --git a/src/plugins/projectexplorer/customwizard/customwizardscriptgenerator.cpp b/src/plugins/projectexplorer/customwizard/customwizardscriptgenerator.cpp
index 72f91696429b32ef2fbf0f09ee06e0ca2c3811e5..f650f832bdca99f79731fe4f1de4bd66710719d2 100644
--- a/src/plugins/projectexplorer/customwizard/customwizardscriptgenerator.cpp
+++ b/src/plugins/projectexplorer/customwizard/customwizardscriptgenerator.cpp
@@ -184,7 +184,7 @@ Core::GeneratedFiles
                             fileInfo.isAbsolute() ?
                             token :
                             (targetPath + QLatin1Char('/') + token);
-                    file.setPath(QDir::toNativeSeparators(fullPath));
+                    file.setPath(fullPath);
                 }
             }
             file.setAttributes(attributes);
diff --git a/src/plugins/projectexplorer/projectfilewizardextension.cpp b/src/plugins/projectexplorer/projectfilewizardextension.cpp
index 083e629863fb3e3af224a63d879f2fc086f1f6d1..62339ae0f7111fe615d1191780cc70aba475540d 100644
--- a/src/plugins/projectexplorer/projectfilewizardextension.cpp
+++ b/src/plugins/projectexplorer/projectfilewizardextension.cpp
@@ -101,7 +101,7 @@ struct ProjectEntry {
     int compare(const ProjectEntry &rhs) const;
 
     ProjectNode *node;
-    QString nativeDirectory; // For matching against wizards' files, which are native.
+    QString directory; // For matching against wizards' files, which are native.
     QString fileName;
     QString baseName;
     Type type;
@@ -116,13 +116,13 @@ ProjectEntry::ProjectEntry(ProjectNode *n) :
     baseName = fi.baseName();
     if (fi.suffix() != QLatin1String("pro"))
         type = PriFile;
-    nativeDirectory = QDir::toNativeSeparators(fi.absolutePath());
+    directory = fi.absolutePath();
 }
 
 // Sort helper that sorts by base name and puts '*.pro' before '*.pri'
 int ProjectEntry::compare(const ProjectEntry &rhs) const
 {
-    if (const int drc = nativeDirectory.compare(rhs.nativeDirectory))
+    if (const int drc = directory.compare(rhs.directory))
         return drc;
     if (const int brc = baseName.compare(rhs.baseName))
         return brc;
@@ -140,7 +140,7 @@ inline bool operator<(const ProjectEntry &pe1, const ProjectEntry &pe2)
 
 QDebug operator<<(QDebug d, const ProjectEntry &e)
 {
-    d.nospace() << e.nativeDirectory << ' ' << e.fileName << ' ' << e.type;
+    d.nospace() << e.directory << ' ' << e.fileName << ' ' << e.type;
     return d;
 }
 
@@ -212,7 +212,7 @@ static int findMatchingProject(const QList<ProjectEntry> &projects,
     const int count = projects.size();
     for (int p = 0; p < count; p++) {
         // Direct match or better match? (note that the wizards' files are native).
-        const QString &projectDirectory = projects.at(p).nativeDirectory;
+        const QString &projectDirectory = projects.at(p).directory;
         if (projectDirectory == commonPath)
             return p;
         if (projectDirectory.size() > bestMatchLength
@@ -357,7 +357,7 @@ void ProjectFileWizardExtension::initProjectChoices(const QString &generatedProj
     for (ProjectEntryMap::const_iterator it = entryMap.constBegin(); it != cend; ++it) {
         m_context->projects.push_back(it.key());
         projectChoices.push_back(it.key().fileName);
-        projectToolTips.push_back(it.key().nativeDirectory);
+        projectToolTips.push_back(QDir::toNativeSeparators(it.key().directory));
     }
 
     m_context->page->setProjects(projectChoices);