diff options
Diffstat (limited to 'src/plugins/autotoolsprojectmanager/autotoolsproject.cpp')
-rw-r--r-- | src/plugins/autotoolsprojectmanager/autotoolsproject.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/plugins/autotoolsprojectmanager/autotoolsproject.cpp b/src/plugins/autotoolsprojectmanager/autotoolsproject.cpp index a4a733d0cd..7240fab3a5 100644 --- a/src/plugins/autotoolsprojectmanager/autotoolsproject.cpp +++ b/src/plugins/autotoolsprojectmanager/autotoolsproject.cpp @@ -75,6 +75,7 @@ AutotoolsProject::AutotoolsProject(const Utils::FileName &fileName) : setId(Constants::AUTOTOOLS_PROJECT_ID); setProjectContext(Core::Context(Constants::PROJECT_CONTEXT)); setProjectLanguages(Core::Context(ProjectExplorer::Constants::CXX_LANGUAGE_ID)); + setDisplayName(projectDirectory().fileName()); } AutotoolsProject::~AutotoolsProject() @@ -90,11 +91,6 @@ AutotoolsProject::~AutotoolsProject() } } -QString AutotoolsProject::displayName() const -{ - return projectFilePath().toFileInfo().absoluteDir().dirName(); -} - QString AutotoolsProject::defaultBuildDirectory(const QString &projectPath) { return QFileInfo(projectPath).absolutePath(); |