Commit 7e3711b1 authored by David Jarvie's avatar David Jarvie
Browse files

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.
parent 060c26da
/*
* editdlgtypes.cpp - dialogs to create or edit alarm or alarm template types
* Program: kalarm
* Copyright © 2001-2012 by David Jarvie <djarvie@kde.org>
* Copyright © 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::defaultSoundVolume());
mSoundConfig->set(Preferences::defaultSoundFile(), Preferences::defaultSoundVolume(),
-1, 0, (Preferences::defaultSoundRepeat() ? 0 : -1));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment