forked from qt-creator/qt-creator
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>
This commit is contained in:
committed by
Tobias Hunger
parent
a5b4dca5c3
commit
82a821fc9b
@@ -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)
|
||||
|
Reference in New Issue
Block a user