diff options
author | Jonathan Liu <net147@gmail.com> | 2012-05-15 19:54:12 +1000 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@nokia.com> | 2012-05-16 10:20:33 +0200 |
commit | 1f435bcbce3112e0e764b9f6190a7f6182ef4558 (patch) | |
tree | 85bba812d861717d900a6bb434ed3978f4f270a0 | |
parent | d7c9f3debaa20f6f68f2a2c689948b18b4cca9c2 (diff) |
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>
(cherry picked from commit 82a821fc9b7d0770db15dda0db538966beefd695)
-rw-r--r-- | src/plugins/subversion/subversionplugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |