mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
* Only use PlaySound for "gdau" links (Windows only)
This commit is contained in:
parent
d917ae8896
commit
e3bb365473
|
@ -179,6 +179,10 @@ void ArticleView::linkClicked( QUrl const & url )
|
||||||
|
|
||||||
// Decide the viewer
|
// Decide the viewer
|
||||||
|
|
||||||
|
QString program, extension;
|
||||||
|
|
||||||
|
if ( url.scheme() == "gdau" )
|
||||||
|
{
|
||||||
#ifdef Q_OS_WIN32
|
#ifdef Q_OS_WIN32
|
||||||
// Windows-only: use system PlaySound function
|
// Windows-only: use system PlaySound function
|
||||||
|
|
||||||
|
@ -194,10 +198,6 @@ void ArticleView::linkClicked( QUrl const & url )
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QString program, extension;
|
|
||||||
|
|
||||||
if ( url.scheme() == "gdau" )
|
|
||||||
{
|
|
||||||
program = "mplayer";
|
program = "mplayer";
|
||||||
extension = "wav";
|
extension = "wav";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue