forked from qt-creator/qt-creator
VCS/git: Make blame go to current editor line
using queued slot/variant cookie magic in command
This commit is contained in:
@@ -184,5 +184,14 @@ void GitEditor::setPlainTextDataFiltered(const QByteArray &a)
|
||||
}
|
||||
}
|
||||
|
||||
void GitEditor::commandFinishedGotoLine(bool ok, const QVariant &v)
|
||||
{
|
||||
if (ok && v.type() == QVariant::Int) {
|
||||
const int line = v.toInt();
|
||||
if (line >= 0)
|
||||
gotoLine(line);
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Git
|
||||
|
||||
Reference in New Issue
Block a user