From kde-commits Tue Sep 30 22:07:41 2014 From: David Jarvie Date: Tue, 30 Sep 2014 22:07:41 +0000 To: kde-commits Subject: [kdepim/KDE/4.14] kalarm: Make audio alarms use sound file repeat preference setting Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=141211486912654 Git commit 37ad589bf867c0187c3629a7cd41051e7b224371 by David Jarvie. Committed on 30/09/2014 at 22:08. Pushed by djarvie into branch 'KDE/4.14'. Make audio alarms use sound file repeat preference setting The sound file settings in the new alarm dialog use the sound file repeat preference setting in the case of display alarms, but not in the case of audio alarms. This patch makes the audio alarm edit dialog also use the setting. M +3 -2 kalarm/editdlgtypes.cpp http://commits.kde.org/kdepim/37ad589bf867c0187c3629a7cd41051e7b224371 diff --git a/kalarm/editdlgtypes.cpp b/kalarm/editdlgtypes.cpp index dae8432..60bbaa0 100644 --- a/kalarm/editdlgtypes.cpp +++ b/kalarm/editdlgtypes.cpp @@ -1,7 +1,7 @@ /* * editdlgtypes.cpp - dialogs to create or edit alarm or alarm template= types * Program: kalarm - * Copyright =C2=A9 2001-2012 by David Jarvie + * Copyright =C2=A9 2001-2014 by David Jarvie * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -1545,7 +1545,8 @@ void EditAudioAlarmDlg::type_initValues(const KAEvent= * event) else { // Set the values to their defaults - mSoundConfig->set(Preferences::defaultSoundFile(), Preferences::de= faultSoundVolume()); + mSoundConfig->set(Preferences::defaultSoundFile(), Preferences::de= faultSoundVolume(), + -1, 0, (Preferences::defaultSoundRepeat() ? 0 : = -1)); } } =