diff options
Diffstat (limited to 'widgets/misc/e-dateedit.c')
-rw-r--r-- | widgets/misc/e-dateedit.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/widgets/misc/e-dateedit.c b/widgets/misc/e-dateedit.c index 09ba1ad2d9..e8f6e74aea 100644 --- a/widgets/misc/e-dateedit.c +++ b/widgets/misc/e-dateedit.c @@ -673,13 +673,14 @@ e_date_edit_get_date (EDateEdit *dedit, /* Try to parse any new value now. */ e_date_edit_check_date_changed (dedit); - if (priv->date_set_to_none) - return FALSE; - *year = priv->year + 1900; *month = priv->month + 1; *day = priv->day; + if (priv->date_set_to_none + && e_date_edit_get_allow_no_date_set (dedit)) + return FALSE; + return TRUE; } |