From 1f435bcbce3112e0e764b9f6190a7f6182ef4558 Mon Sep 17 00:00:00 2001 From: Jonathan Liu Date: Tue, 15 May 2012 19:54:12 +1000 Subject: SVN: Fix project status command when no document open The SVN project status command is using currentFileTopLevel() for the working directory when it should be using currentProjectTopLevel(). If no document is open, currentFileTopLevel() will return an empty string which means the current working directory of Qt Creator is used. Change-Id: I848b1adf7166836c5d15e88796af77f8700a43f2 Reviewed-by: Tobias Hunger (cherry picked from commit 82a821fc9b7d0770db15dda0db538966beefd695) --- src/plugins/subversion/subversionplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/subversion/subversionplugin.cpp b/src/plugins/subversion/subversionplugin.cpp index 2e63152bca..b5dcaab70a 100644 --- a/src/plugins/subversion/subversionplugin.cpp +++ b/src/plugins/subversion/subversionplugin.cpp @@ -1014,7 +1014,7 @@ void SubversionPlugin::projectStatus() { const VcsBase::VcsBasePluginState state = currentState(); QTC_ASSERT(state.hasProject(), return); - svnStatus(state.currentFileTopLevel(), state.relativeCurrentProject()); + svnStatus(state.currentProjectTopLevel(), state.relativeCurrentProject()); } void SubversionPlugin::describe(const QString &source, const QString &changeNr) -- cgit v1.2.3