[gnome-calendar/gnome-3-32] 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/gnome-3-32] edit-dialog: Restore time removal of all-day events
- Date: Fri, 10 May 2019 15:08:59 +0000 (UTC)
commit a38e221363c1344c88acf15fb72ae0c5de64a3ea
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/gcal-edit-dialog.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c
index da0f9ad2..9a1f2eb0 100644
--- a/src/gcal-edit-dialog.c
+++ b/src/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]