Commit ecc1f591 authored by hjk's avatar hjk

VcsBase: Remove one more widget->editor->widget indirection

Change-Id: I5eba298dae066dde560350024bb3a4b396b4c7ef
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent c587f0b2
......@@ -1408,7 +1408,7 @@ void VcsBaseEditorWidget::addDiffActions(QMenu *, const DiffChunk &)
void VcsBaseEditorWidget::slotAnnotateRevision()
{
if (const QAction *a = qobject_cast<const QAction *>(sender())) {
const int currentLine = editor()->currentLine();
const int currentLine = textCursor().blockNumber() + 1;
const QString fileName = fileNameForLine(currentLine);
QString workingDirectory = d->m_workingDirectory;
if (workingDirectory.isEmpty())
......
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