From c4b2be45d29a247422e60bb8fdf1664c10384eee Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Mon, 6 Dec 2021 03:51:08 -0600 Subject: First pass for Qt6 compatibility --- src/modinfodialogfiletree.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modinfodialogfiletree.cpp') diff --git a/src/modinfodialogfiletree.cpp b/src/modinfodialogfiletree.cpp index cc0e6493..9f39447d 100644 --- a/src/modinfodialogfiletree.cpp +++ b/src/modinfodialogfiletree.cpp @@ -172,7 +172,7 @@ void FileTreeTab::onOpen() const auto path = m_fs->filePath(selection); core().processRunner() - .setFromFile(parentWidget(), path) + .setFromFile(parentWidget(), QFileInfo(path)) .setHooked(false) .setWaitForCompletion() .run(); @@ -187,7 +187,7 @@ void FileTreeTab::onRunHooked() const auto path = m_fs->filePath(selection); core().processRunner() - .setFromFile(parentWidget(), path) + .setFromFile(parentWidget(), QFileInfo(path)) .setHooked(true) .setWaitForCompletion() .run(); -- cgit v1.3.1