(get_type_from_parent_path):

Return "mail" instead of NULL when we don't have a parent folder.
[#28232]

svn path=/trunk/; revision=18179
This commit is contained in:
Ettore Perazzoli
2002-09-23 20:07:30 +00:00
parent ebe98873ea
commit b0b2ebe9c3
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2002-09-23 Ettore Perazzoli <ettore@ximian.com>
* e-shell-folder-creation-dialog.c (get_type_from_parent_path):
Return "mail" instead of NULL when we don't have a parent folder.
[#28232]
2002-09-23 Ettore Perazzoli <ettore@ximian.com>
* e-shell-about-box.c: Added some missing names.

View File

@ -457,12 +457,12 @@ get_type_from_parent_path (EShell *shell,
set = e_shell_get_storage_set (shell);
folder = e_storage_set_get_folder (set, path);
if (folder == NULL) {
return NULL;
return "mail";
}
folder_type = e_folder_get_type_string (folder);
if (folder_type == NULL) {
return NULL;
if (folder_type == NULL || strcmp (folder_type, "noselect") == 0) {
return "mail";
} else {
return folder_type;
}