From fbe64c2aee924f646e01c096e40094585615c086 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Sun, 15 Apr 2001 14:51:19 +0000 Subject: Pull up fix from the branch: Make sure the OK button in the folder creation dialog is not sensitive if no parent folder is selected. Fix a Gtk-Warning that would happen if you selected "New" in the folder selection dialog and then "Cancel" in the folder creation dialog. svn path=/trunk/; revision=9325 --- shell/e-shell-folder-selection-dialog.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'shell/e-shell-folder-selection-dialog.c') diff --git a/shell/e-shell-folder-selection-dialog.c b/shell/e-shell-folder-selection-dialog.c index 1b6f456804..739ec0b62c 100644 --- a/shell/e-shell-folder-selection-dialog.c +++ b/shell/e-shell-folder-selection-dialog.c @@ -114,7 +114,9 @@ folder_creation_dialog_result_cb (EShell *shell, dialog = E_SHELL_FOLDER_SELECTION_DIALOG (data); priv = dialog->priv; - e_storage_set_view_set_current_folder (E_STORAGE_SET_VIEW (priv->storage_set_view), path); + if (result == E_SHELL_FOLDER_CREATION_DIALOG_RESULT_SUCCESS) + e_storage_set_view_set_current_folder (E_STORAGE_SET_VIEW (priv->storage_set_view), + path); } -- cgit v1.2.3