diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-02-03 21:35:10 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-02-03 21:35:10 -0600 |
commit | 7d1ec01369d1c107cd42b0a7501f8cdb3c7e08ac (patch) | |
tree | e1eba72790cf6898333ec0d52aa741129cf198db /src | |
parent | 2893b128d4aa61f9c55f2916350c898b1fa4a477 (diff) | |
download | ayatana-indicator-datetime-7d1ec01369d1c107cd42b0a7501f8cdb3c7e08ac.tar.gz ayatana-indicator-datetime-7d1ec01369d1c107cd42b0a7501f8cdb3c7e08ac.tar.bz2 ayatana-indicator-datetime-7d1ec01369d1c107cd42b0a7501f8cdb3c7e08ac.zip |
don't show snap decisions for appointments that don't have alarms.
Diffstat (limited to 'src')
-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 bac8958..7acac9c 100644 --- a/src/snap.cpp +++ b/src/snap.cpp @@ -79,6 +79,9 @@ Snap::Snap(const std::shared_ptr<Clock>& clock): void Snap::operator()(const Appointment& appointment) { + if (!appointment.has_alarms) + return; + const auto timestr = m_formatter.header.get(); const auto body = appointment.summary; gchar* title = g_strdup_printf(_("Alarm %s"), timestr.c_str()); |