[evolution] Correct runtime warning when creating All Day Appointment
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Correct runtime warning when creating All Day Appointment
- Date: Tue, 19 Sep 2017 10:22:13 +0000 (UTC)
commit b586005a9b9b08f624ab34a77bb7f60806e788f9
Author: Milan Crha <mcrha redhat com>
Date: Tue Sep 19 12:21:25 2017 +0200
Correct runtime warning when creating All Day Appointment
When creating an All Day Appointment, like from the File->New-> menu,
Evolution could show a runtime warning like the one below. This
corrects the code to avoid the runtime warning.
evolution-util-CRITICAL **: e_date_edit_set_time_of_day: assertion 'allow_no_date_set' failed
src/calendar/gui/e-comp-editor-property-part.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/calendar/gui/e-comp-editor-property-part.c b/src/calendar/gui/e-comp-editor-property-part.c
index bc42ef1..4eeaf01 100644
--- a/src/calendar/gui/e-comp-editor-property-part.c
+++ b/src/calendar/gui/e-comp-editor-property-part.c
@@ -834,7 +834,7 @@ e_comp_editor_property_part_datetime_set_value (ECompEditorPropertyPartDatetime
e_date_edit_set_time_of_day (date_edit, value.hour, value.minute);
else if (e_date_edit_get_show_time (date_edit))
e_date_edit_set_time_of_day (date_edit, 0, 0);
- else
+ else if (e_date_edit_get_allow_no_date_set (date_edit))
e_date_edit_set_time_of_day (date_edit, -1, -1);
e_comp_editor_property_part_datetime_set_date_only (part_datetime, value.is_date);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]