diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-05-03 17:21:12 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-05-03 17:40:27 +0100 |
commit | 7e6b86eb1ad6096d48bd7ddb10b827335293ec6c (patch) | |
tree | 96b21856a88a8df359fa110eed88db8a806434c0 /desktop/global_history.c | |
parent | 3020dd698d7e8e57a2b977dc31a3f779017834f9 (diff) | |
download | netsurf-7e6b86eb1ad6096d48bd7ddb10b827335293ec6c.tar.gz netsurf-7e6b86eb1ad6096d48bd7ddb10b827335293ec6c.tar.bz2 |
make global history treeview directory creation return error instead of aborting
Diffstat (limited to 'desktop/global_history.c')
-rw-r--r-- | desktop/global_history.c | 13 |
1 files changed, 11 insertions, 2 deletions
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); |