* Only use PlaySound for "gdau" links (Windows only)

This commit is contained in:
Konstantin Isakov 2009-02-08 14:09:39 +00:00
parent d917ae8896
commit e3bb365473

View file

@ -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";
}