VcsOutputWindow: Use toVariant() when storing FilePath

Amends 4edb238073

Change-Id: Ied6f2d9fd78a40f70393eae1c685198ab119e575
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2022-10-04 10:40:29 +02:00
parent 4f2b15679d
commit 34f9229eef

View File

@@ -163,7 +163,7 @@ void OutputWindowPlainTextEdit::contextMenuEvent(QContextMenuEvent *event)
if (repo.isFile()) {
menu->addSeparator();
openAction = menu->addAction(VcsOutputWindow::tr("Open \"%1\"").arg(repo.nativePath()));
openAction->setData(repo.absoluteFilePath().toString());
openAction->setData(repo.absoluteFilePath().toVariant());
}
}
QAction *clearAction = nullptr;