forked from qt-creator/qt-creator
vcsbase : fix bug in VCSBaseClient::view()
The VCS command was executed in the wrong working directory Merge-request: 269 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -399,7 +399,7 @@ void VCSBaseClient::view(const QString &source, const QString &id)
|
||||
VCSBase::VCSBaseEditorWidget *editor = createVCSEditor(kind, title, source,
|
||||
true, "view", id);
|
||||
|
||||
QSharedPointer<VCSJob> job(new VCSJob(source, args, editor));
|
||||
QSharedPointer<VCSJob> job(new VCSJob(QFileInfo(source).absolutePath(), args, editor));
|
||||
enqueueJob(job);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user