From 0b61888bc7d9ebd167deec48486abe45e5e0fa1f Mon Sep 17 00:00:00 2001 From: shenleban tongying Date: Wed, 20 Mar 2024 00:43:28 -0400 Subject: [PATCH] fix: Open Image in System Viewer doesn't work on macOS --- src/ui/articleview.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/articleview.cc b/src/ui/articleview.cc index d8e7fb37..d7d37fbc 100644 --- a/src/ui/articleview.cc +++ b/src/ui/articleview.cc @@ -1792,11 +1792,11 @@ void ArticleView::contextMenuRequested( QPoint const & pos ) if ( !handler->isEmpty() ) { connect( handler, &ResourceToSaveHandler::done, this, [ fileName ]() { - QDesktopServices::openUrl( fileName ); + QDesktopServices::openUrl( QUrl::fromLocalFile( fileName ) ); } ); } else { - QDesktopServices::openUrl( fileName ); + QDesktopServices::openUrl( QUrl::fromLocalFile( fileName ) ); } } }