From 7e6b86eb1ad6096d48bd7ddb10b827335293ec6c Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 3 May 2015 17:21:12 +0100 Subject: make global history treeview directory creation return error instead of aborting --- desktop/global_history.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'desktop/global_history.c') diff --git a/desktop/global_history.c b/desktop/global_history.c index 59447116a..2cb0c91a6 100644 --- a/desktop/global_history.c +++ b/desktop/global_history.c @@ -135,36 +135,45 @@ static nserror global_history_create_dir(enum global_history_folders f) case GH_TODAY: label = "DateToday"; break; + case GH_YESTERDAY: label = "DateYesterday"; break; + case GH_2_DAYS_AGO: label = "Date2Days"; break; + case GH_3_DAYS_AGO: label = "Date3Days"; break; + case GH_4_DAYS_AGO: label = "Date4Days"; break; + case GH_5_DAYS_AGO: label = "Date5Days"; break; + case GH_6_DAYS_AGO: label = "Date6Days"; break; + case GH_LAST_WEEK: label = "Date1Week"; break; + case GH_2_WEEKS_AGO: label = "Date2Week"; break; + case GH_3_WEEKS_AGO: label = "Date3Week"; break; + default: - assert(0); - break; + return NSERROR_BAD_PARAMETER; } label = messages_get(label); -- cgit v1.2.3