Changeset 13827


Ignore:
Timestamp:
Jan 21, 2013, 9:48:52 PM (8 years ago)
Author:
jordan
Message:

(qt) #5239 'client should have the option to play a sound when the download completes' -- use QApplication::beep() on OS X and Mac. Patch by rb07

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/app.cc

    r13813 r13827  
    289289
    290290      if (myPrefs->getBool (Prefs::COMPLETE_SOUND_ENABLED))
    291         QProcess::execute (myPrefs->getString(Prefs::COMPLETE_SOUND_COMMAND));
     291        {
     292#if defined( Q_OS_WIN ) || defined( Q_OS_MAC )
     293          QApplication::beep();
     294#else
     295          QProcess::execute (myPrefs->getString(Prefs::COMPLETE_SOUND_COMMAND));
     296#endif
     297        }
    292298
    293299      disconnect( tor, SIGNAL(torrentCompleted(int)), this, SLOT(onTorrentCompleted(int)) );
Note: See TracChangeset for help on using the changeset viewer.