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:
cerf
2011-03-14 09:41:25 +01:00
committed by Tobias Hunger
parent 86b77ca950
commit 901ea8fa95

View File

@@ -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);
}