* 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 // 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";
} }