aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-03-31 16:26:27 -0300
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-29 14:37:39 +0200
commitb13d57194646736652610fd68793aa8f2a260566 (patch)
tree78a4b7a220c37b28e2dab0c7790f587817ca274e /src
parent87d2694ceeadee723573b3866a8bc2e3fb49de58 (diff)
downloadayatana-indicator-datetime-b13d57194646736652610fd68793aa8f2a260566.tar.gz
ayatana-indicator-datetime-b13d57194646736652610fd68793aa8f2a260566.tar.bz2
ayatana-indicator-datetime-b13d57194646736652610fd68793aa8f2a260566.zip
Update tests.
Diffstat (limited to 'src')
-rw-r--r--src/engine-eds.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/engine-eds.cpp b/src/engine-eds.cpp
index 68e2bdd..7450beb 100644
--- a/src/engine-eds.cpp
+++ b/src/engine-eds.cpp
@@ -634,7 +634,6 @@ private:
auto action = e_cal_component_alarm_get_action(alarm);
if (action == E_CAL_COMPONENT_ALARM_AUDIO)
{
- ret = default_sound;
ICalAttach *attach = nullptr;
auto attachments = e_cal_component_alarm_get_attachments(alarm);
@@ -650,6 +649,8 @@ private:
ret = url;
}
}
+ if (ret.empty())
+ ret = default_sound;
}
return ret;
@@ -1141,8 +1142,9 @@ private:
alarm.text = get_alarm_text(a);
if (alarm.audio_url.empty())
- alarm.audio_url = get_alarm_sound_url(a, baseline.is_ubuntu_alarm() ?
- ALARM_DEFAULT_SOUND : CALENDAR_DEFAULT_SOUND);
+ alarm.audio_url = get_alarm_sound_url(a, (baseline.is_ubuntu_alarm() ?
+ "file://" ALARM_DEFAULT_SOUND :
+ "file://" ALARM_DEFAULT_SOUND));
if (!alarm.time.is_set())
alarm.time = trigger_time;
@@ -1158,7 +1160,7 @@ private:
appointment.alarms.reserve(i.second.size());
for (auto& j : i.second)
{
- if (j.second.has_text() || (j.second.has_sound()))
+ if (j.second.has_text() || j.second.has_sound())
appointment.alarms.push_back(j.second);
}
subtask->task->appointments.push_back(appointment);