diff options
author | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2016-04-01 10:05:52 -0300 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-08-29 14:37:39 +0200 |
commit | b7e9673460d55d07020728bd981eb61e956336f0 (patch) | |
tree | 22b347c266b649bebcf37ce42fa08084ae351fc4 /src/snap.cpp | |
parent | 676b6c35768e707710a7121ed9f71002c6226bd7 (diff) | |
download | ayatana-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/snap.cpp')
-rw-r--r-- | src/snap.cpp | 3 |
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())) |