From 0f153dd0156176a5e78b81c1519ef9dc602a370e Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Thu, 12 Jul 2001 16:49:47 +0000 Subject: guard against infinite loops with the updating boolean, fixes 4270 2001-07-12 JP Rosevear * gui/dialogs/task-details-page.c (task_details_page_set_dates): guard against infinite loops with the updating boolean, fixes 4270 svn path=/trunk/; revision=11045 --- calendar/ChangeLog | 5 +++++ calendar/gui/dialogs/task-details-page.c | 7 +++++++ 2 files changed, 12 insertions(+) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 5f69455242..d60ab5b902 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2001-07-12 JP Rosevear + + * gui/dialogs/task-details-page.c (task_details_page_set_dates): + guard against infinite loops with the updating boolean, fixes 4270 + 2001-07-12 Rodrigo Moya * gui/e-calendar-table.c: added support for multiple selections in diff --git a/calendar/gui/dialogs/task-details-page.c b/calendar/gui/dialogs/task-details-page.c index 1af190a201..6212e8f76f 100644 --- a/calendar/gui/dialogs/task-details-page.c +++ b/calendar/gui/dialogs/task-details-page.c @@ -387,6 +387,11 @@ task_details_page_set_dates (CompEditorPage *page, CompEditorPageDates *dates) tdpage = TASK_DETAILS_PAGE (page); priv = tdpage->priv; + if (priv->updating) + return; + + priv->updating = TRUE; + comp_editor_date_label (dates, priv->date_time); if (dates->complete) { @@ -412,6 +417,8 @@ task_details_page_set_dates (CompEditorPage *page, CompEditorPageDates *dates) tt->hour, tt->minute); } } + + priv->updating = FALSE; } -- cgit v1.2.3