From 34f9229eef671a9d6297d748f79d076cc20e84b8 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Tue, 4 Oct 2022 10:40:29 +0200 Subject: [PATCH] VcsOutputWindow: Use toVariant() when storing FilePath Amends 4edb2380735d1b5d66aff75c800131dee4f9835e Change-Id: Ied6f2d9fd78a40f70393eae1c685198ab119e575 Reviewed-by: Orgad Shaneh --- src/plugins/vcsbase/vcsoutputwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/vcsbase/vcsoutputwindow.cpp b/src/plugins/vcsbase/vcsoutputwindow.cpp index b6911cdcd35..e0c7c3b5568 100644 --- a/src/plugins/vcsbase/vcsoutputwindow.cpp +++ b/src/plugins/vcsbase/vcsoutputwindow.cpp @@ -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;