Commit 82a821fc authored by Jonathan Liu's avatar Jonathan Liu Committed by Tobias Hunger
Browse files

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: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent a5b4dca5
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment