aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-04-01 10:05:52 -0300
committerRobert Tari <robert@tari.in>2021-07-05 18:34:31 +0200
commite4e139f59dbff3cdd5db2f2e175dd78ce56ad956 (patch)
tree5398eee55a1995c1dcf0961eec364938b77e607e /src
parent30b0ba7facf333209ea60db9f3b5820dc0f4d5f3 (diff)
downloadayatana-indicator-datetime-e4e139f59dbff3cdd5db2f2e175dd78ce56ad956.tar.gz
ayatana-indicator-datetime-e4e139f59dbff3cdd5db2f2e175dd78ce56ad956.tar.bz2
ayatana-indicator-datetime-e4e139f59dbff3cdd5db2f2e175dd78ce56ad956.zip
Does not play sound for events without a sound set.
Diffstat (limited to 'src')
-rw-r--r--src/snap.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/snap.cpp b/src/snap.cpp
index 97fcbab..ca89851 100644
--- a/src/snap.cpp
+++ b/src/snap.cpp
@@ -226,6 +226,9 @@ private:
};
std::string uri;
+ if (!alarm.has_sound() && !is_alarm)
+ return uri;
+
for(const auto& candidate : candidates)
{
if (gst_uri_is_valid (candidate.c_str()))