VcsBase: Use FilePath in editorTag()

Change-Id: I4093fa46a51767afd00a8de2f94986c708dc1efa
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2022-10-06 12:51:50 +02:00
parent 9d4017400e
commit b8efc2f14d
7 changed files with 23 additions and 27 deletions

View File

@@ -1011,7 +1011,7 @@ void CvsPluginPrivate::filelog(const FilePath &workingDir,
// Re-use an existing view if possible to support
// the common usage pattern of continuously changing and diffing a file
const QString tag = VcsBaseEditor::editorTag(LogOutput, workingDir.toString(), QStringList(file));
const QString tag = VcsBaseEditor::editorTag(LogOutput, workingDir, {file});
if (IEditor *editor = VcsBaseEditor::locateEditorByTag(tag)) {
editor->document()->setContents(response.cleanedStdOut().toUtf8());
EditorManager::activateEditor(editor);
@@ -1150,7 +1150,7 @@ void CvsPluginPrivate::annotate(const FilePath &workingDir, const QString &file,
if (lineNumber < 1)
lineNumber = VcsBaseEditor::lineNumberOfCurrentEditor(file);
const QString tag = VcsBaseEditor::editorTag(AnnotateOutput, workingDir.toString(), QStringList(file), revision);
const QString tag = VcsBaseEditor::editorTag(AnnotateOutput, workingDir, {file}, revision);
if (IEditor *editor = VcsBaseEditor::locateEditorByTag(tag)) {
editor->document()->setContents(response.cleanedStdOut().toUtf8());
VcsBaseEditor::gotoLineOfEditor(editor, lineNumber);