mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +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() ) {
|
if ( !handler->isEmpty() ) {
|
||||||
connect( handler, &ResourceToSaveHandler::done, this, [ fileName ]() {
|
connect( handler, &ResourceToSaveHandler::done, this, [ fileName ]() {
|
||||||
QDesktopServices::openUrl( fileName );
|
QDesktopServices::openUrl( QUrl::fromLocalFile( fileName ) );
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
QDesktopServices::openUrl( fileName );
|
QDesktopServices::openUrl( QUrl::fromLocalFile( fileName ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue