mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-16 17:22:44 +03:00
make global history treeview directory creation return error instead of aborting
This commit is contained in:
parent
3020dd698d
commit
7e6b86eb1a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user