mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +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
|
||||
|
||||
QString program, extension;
|
||||
|
||||
if ( url.scheme() == "gdau" )
|
||||
{
|
||||
#ifdef Q_OS_WIN32
|
||||
// Windows-only: use system PlaySound function
|
||||
|
||||
|
@ -194,10 +198,6 @@ void ArticleView::linkClicked( QUrl const & url )
|
|||
return;
|
||||
#endif
|
||||
|
||||
QString program, extension;
|
||||
|
||||
if ( url.scheme() == "gdau" )
|
||||
{
|
||||
program = "mplayer";
|
||||
extension = "wav";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue