mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
fix: Open Image in System Viewer doesn't work on macOS
This commit is contained in:
parent
ebce607634
commit
0b61888bc7
|
@ -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 ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue