[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdepim/KDE/4.14] kalarm: Make audio alarms use sound file repeat preference setting
From:       David Jarvie <djarvie () kde ! org>
Date:       2014-09-30 22:07:41
Message-ID: E1XZ5a9-0004DR-KD () scm ! kde ! org
[Download RAW message or body]

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 <djarvie@kde.org>
+ *  Copyright =C2=A9 2001-2014 by David Jarvie <djarvie@kde.org>
  *
  *  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));
     }
 }
 =


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic