summaryrefslogtreecommitdiff
path: root/src/plugins/subversion
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2012-05-15 19:54:12 +1000
committerTobias Hunger <tobias.hunger@nokia.com>2012-05-15 12:36:29 +0200
commit82a821fc9b7d0770db15dda0db538966beefd695 (patch)
treeb57a77f97e4803bfe74bb251b2608e6f630a7724 /src/plugins/subversion
parenta5b4dca5c30e3854a4b5e1c68318bdb5b8f1e99e (diff)
downloadqt-creator-82a821fc9b7d0770db15dda0db538966beefd695.tar.gz
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 <tobias.hunger@nokia.com>
Diffstat (limited to 'src/plugins/subversion')
-rw-r--r--src/plugins/subversion/subversionplugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/subversion/subversionplugin.cpp b/src/plugins/subversion/subversionplugin.cpp
index db10a657f7..b5d3098b13 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)