mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
Merge pull request #1425 from shenlebantongying/fix/mac-open-in-systemviewer
fix: "Open Image in System Viewer" doesn't work on macOS
This commit is contained in:
commit
728fa4850c
|
@ -1799,11 +1799,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