aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/vcsbase/vcsbaseplugin.cpp
diff options
context:
space:
mode:
authorTobias Hunger <[email protected]>2010-03-25 13:19:27 +0100
committerTobias Hunger <[email protected]>2010-03-25 14:21:43 +0100
commit1ca8cb239759efd59b841b262e7fe618ff18d99a (patch)
treed74acbbae2d363bfad34f7cb5f7456f07de53f38 /src/plugins/vcsbase/vcsbaseplugin.cpp
parent3a15c8c3c543adcc42eec8a30a7675ddd3b90526 (diff)
Introduce method to access the project directory
... use it. Reviewed-by: dt
Diffstat (limited to 'src/plugins/vcsbase/vcsbaseplugin.cpp')
-rw-r--r--src/plugins/vcsbase/vcsbaseplugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/vcsbase/vcsbaseplugin.cpp b/src/plugins/vcsbase/vcsbaseplugin.cpp
index 2dc0eae9649..bfa7f80ddec 100644
--- a/src/plugins/vcsbase/vcsbaseplugin.cpp
+++ b/src/plugins/vcsbase/vcsbaseplugin.cpp
@@ -197,7 +197,7 @@ void StateListener::slotStateChanged()
// Check for project, find the control
Core::IVersionControl *projectControl = 0;
if (const ProjectExplorer::Project *currentProject = pe->currentProject()) {
- state.currentProjectPath = QFileInfo(currentProject->file()->fileName()).absolutePath();
+ state.currentProjectPath = currentProject->projectDirectory();
state.currentProjectName = currentProject->displayName();
projectControl = vcsManager->findVersionControlForDirectory(state.currentProjectPath,
&state.currentProjectTopLevel);