fix: Open Image in System Viewer doesn't work on macOS

This commit is contained in:
shenleban tongying 2024-03-20 00:43:28 -04:00
parent ebce607634
commit 0b61888bc7

View file

@ -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 ) );
}
}
}