diff options
author | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2016-04-01 10:05:52 -0300 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2021-07-05 18:34:31 +0200 |
commit | e4e139f59dbff3cdd5db2f2e175dd78ce56ad956 (patch) | |
tree | 5398eee55a1995c1dcf0961eec364938b77e607e | |
parent | 30b0ba7facf333209ea60db9f3b5820dc0f4d5f3 (diff) | |
download | ayatana-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.
-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())) |