[gnome-calendar] edit-dialog: Restore time removal of all-day events
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] edit-dialog: Restore time removal of all-day events
- Date: Fri, 10 May 2019 14:54:52 +0000 (UTC)
commit 1c0131a55f2e51447fb189bc0da119cb3b71d400
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri May 10 11:53:24 2019 -0300
edit-dialog: Restore time removal of all-day events
All day events have no time period. This was a fallout from
the previous commit.
src/gui/gcal-edit-dialog.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/gcal-edit-dialog.c b/src/gui/gcal-edit-dialog.c
index fd83eaaf..2881bd4e 100644
--- a/src/gui/gcal-edit-dialog.c
+++ b/src/gui/gcal-edit-dialog.c
@@ -325,8 +325,8 @@ return_datetime_for_widgets (GcalEditDialog *self,
g_date_time_get_year (date_in_best_tz),
g_date_time_get_month (date_in_best_tz),
g_date_time_get_day_of_month (date_in_best_tz),
- g_date_time_get_hour (date_in_best_tz),
- g_date_time_get_minute (date_in_best_tz),
+ all_day ? 0 : g_date_time_get_hour (date_in_best_tz),
+ all_day ? 0 : g_date_time_get_minute (date_in_best_tz),
0);
return retval;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]