aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-04-01 10:05:52 -0300
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-29 14:37:39 +0200
commitb7e9673460d55d07020728bd981eb61e956336f0 (patch)
tree22b347c266b649bebcf37ce42fa08084ae351fc4 /src
parent676b6c35768e707710a7121ed9f71002c6226bd7 (diff)
downloadayatana-indicator-datetime-b7e9673460d55d07020728bd981eb61e956336f0.tar.gz
ayatana-indicator-datetime-b7e9673460d55d07020728bd981eb61e956336f0.tar.bz2
ayatana-indicator-datetime-b7e9673460d55d07020728bd981eb61e956336f0.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()))