OSDN Git Service

Fixes: - Show extension of projects to add files to
authorcon <qtc-committer@nokia.com>
Mon, 23 Feb 2009 13:30:19 +0000 (14:30 +0100)
committercon <qtc-committer@nokia.com>
Mon, 23 Feb 2009 14:10:42 +0000 (15:10 +0100)
Details:  - Helps distinguishing adding to pro or pri file with same
name

src/plugins/projectexplorer/projectfilewizardextension.cpp

index b897dd4..3b969a1 100644 (file)
@@ -152,7 +152,7 @@ QList<QWizardPage *> ProjectFileWizardExtension::extensionPages(const Core::IWiz
         const int count = m_context->projects.size();
         for (int i = 0; i < count; i++) {
             ProjectNode *pn = m_context->projects.at(i);
-            projectNames.push_back(pn->name());
+            projectNames.push_back(QFileInfo(pn->path()).fileName());
             if (current == pn)
                 currentIndex = i;
         }