aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-folder-creation-dialog.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-09-24 04:07:30 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-09-24 04:07:30 +0800
commitb0b2ebe9c30f90226a3fb15d737d7c281df3e75b (patch)
treed2413a3d07621fa2577884296a85111eefa29e70 /shell/e-shell-folder-creation-dialog.c
parentebe98873eae6891787be887f2ad4d6f37165afd4 (diff)
downloadgsoc2013-evolution-b0b2ebe9c30f90226a3fb15d737d7c281df3e75b.tar
gsoc2013-evolution-b0b2ebe9c30f90226a3fb15d737d7c281df3e75b.tar.gz
gsoc2013-evolution-b0b2ebe9c30f90226a3fb15d737d7c281df3e75b.tar.bz2
gsoc2013-evolution-b0b2ebe9c30f90226a3fb15d737d7c281df3e75b.tar.lz
gsoc2013-evolution-b0b2ebe9c30f90226a3fb15d737d7c281df3e75b.tar.xz
gsoc2013-evolution-b0b2ebe9c30f90226a3fb15d737d7c281df3e75b.tar.zst
gsoc2013-evolution-b0b2ebe9c30f90226a3fb15d737d7c281df3e75b.zip
(get_type_from_parent_path):
Return "mail" instead of NULL when we don't have a parent folder. [#28232] svn path=/trunk/; revision=18179
Diffstat (limited to 'shell/e-shell-folder-creation-dialog.c')
-rw-r--r--shell/e-shell-folder-creation-dialog.c6
1 files changed, 3 insertions, 3 deletions
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;
}