From b0b2ebe9c30f90226a3fb15d737d7c281df3e75b Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Mon, 23 Sep 2002 20:07:30 +0000 Subject: (get_type_from_parent_path): Return "mail" instead of NULL when we don't have a parent folder. [#28232] svn path=/trunk/; revision=18179 --- shell/ChangeLog | 6 ++++++ shell/e-shell-folder-creation-dialog.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index 76a27544a1..8b299bf31c 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,9 @@ +2002-09-23 Ettore Perazzoli + + * 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 * e-shell-about-box.c: Added some missing names. diff --git a/shell/e-shell-folder-creation-dialog.c b/shell/e-shell-folder-creation-dialog.c index dc4ea94826..40688966ac 100644 --- a/shell/e-shell-folder-creation-dialog.c +++ b/shell/e-shell-folder-creation-dialog.c @@ -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; } -- cgit v1.2.3