diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-10-01 17:32:26 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-10-01 17:32:26 +0200 |
commit | 01877b2c86d6abccd2f1a26683268a535e45831b (patch) | |
tree | 4215e31afadfe6f8b6197f795d01ea1764e2f730 /src/plugins/perforce | |
parent | 9ed075c60ca107add6dcbb81dd4f40e9f3623d6c (diff) |
VCS: perforce, cvs, subversion: Goto current line in blame.
Diffstat (limited to 'src/plugins/perforce')
-rw-r--r-- | src/plugins/perforce/perforceplugin.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/perforce/perforceplugin.cpp b/src/plugins/perforce/perforceplugin.cpp index a26ec7d495..0777d21235 100644 --- a/src/plugins/perforce/perforceplugin.cpp +++ b/src/plugins/perforce/perforceplugin.cpp @@ -651,9 +651,11 @@ void PerforcePlugin::annotate(const QString &fileName) const PerforceResponse result = runP4Cmd(args, QStringList(), CommandToWindow|StdErrToWindow|ErrorToWindow, codec); if (!result.error) { + const int lineNumber = VCSBase::VCSBaseEditor::lineNumberOfCurrentEditor(fileName); const QFileInfo fi(fileName); - showOutputInEditor(tr("p4 annotate %1").arg(fi.fileName()), - result.stdOut, VCSBase::AnnotateOutput, codec); + Core::IEditor *ed = showOutputInEditor(tr("p4 annotate %1").arg(fi.fileName()), + result.stdOut, VCSBase::AnnotateOutput, codec); + VCSBase::VCSBaseEditor::gotoLineOfEditor(ed, lineNumber); } } |