]> granicus.if.org Git - transmission/commitdiff
(qt) #5239 'client should have the option to play a sound when the download completes...
authorJordan Lee <jordan@transmissionbt.com>
Mon, 21 Jan 2013 21:48:52 +0000 (21:48 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Mon, 21 Jan 2013 21:48:52 +0000 (21:48 +0000)
qt/app.cc

index b8dd62d16ab5bb0e29471e0b3f17ccccd6bdcba2..a4216706e4bb80a9f03a877fb112425a3a4a8ae6 100644 (file)
--- a/qt/app.cc
+++ b/qt/app.cc
@@ -288,7 +288,13 @@ MyApp :: onTorrentCompleted( int id )
         notify (tr("Torrent Completed"), tor->name());
 
       if (myPrefs->getBool (Prefs::COMPLETE_SOUND_ENABLED))
-        QProcess::execute (myPrefs->getString(Prefs::COMPLETE_SOUND_COMMAND));
+        {
+#if defined( Q_OS_WIN ) || defined( Q_OS_MAC )
+          QApplication::beep();
+#else
+          QProcess::execute (myPrefs->getString(Prefs::COMPLETE_SOUND_COMMAND));
+#endif
+        }
 
       disconnect( tor, SIGNAL(torrentCompleted(int)), this, SLOT(onTorrentCompleted(int)) );
     }