Translate a default_folder of "" into NULL (which can't be passed over

* e-shell.c (impl_Shell_user_select_folder): Translate a
	default_folder of "" into NULL (which can't be passed over CORBA).

svn path=/trunk/; revision=4057
This commit is contained in:
Dan Winship
2000-07-10 22:17:43 +00:00
parent 83fa610d1e
commit 52d48e02c1
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2000-07-10 Dan Winship <danw@helixcode.com>
* e-shell.c (impl_Shell_user_select_folder): Translate a
default_folder of "" into NULL (which can't be passed over CORBA).
2000-07-10 Ettore Perazzoli <ettore@helixcode.com>
* e-storage.c (e_storage_new_folder): Removed debugging message.

View File

@ -237,6 +237,9 @@ impl_Shell_user_select_folder (PortableServer_Servant servant,
allowed_types[i] = corba_allowed_types->_buffer[i];
allowed_types[corba_allowed_types->_length] = NULL;
/* CORBA doesn't allow you to pass a NULL pointer. */
if (!*default_folder)
default_folder = NULL;
folder_selection_dialog = e_shell_folder_selection_dialog_new (shell, title, default_folder, allowed_types);
listener_duplicate = CORBA_Object_duplicate (listener, ev);