+2003-10-13 [kov] 0.9.6claws22
+
+ * src/mimeview.c
+ error checking when the user enters a non-directory at
+ the file selection dialog.
+ work-around for users entering directory location without
+ adding a leading G_DIR_SEPARATOR.
+
2003-10-13 [luke] 0.9.6claws21
* src/compose.c
error reporting for inserting files, including catching
dirname = filesel_select_file(_("Save as"), defname);
if (!dirname) return;
+ if (!is_dir_exist (dirname)) {
+ alertpanel_error(_("`%s' is not a directory."),
+ dirname);
+ g_free (dirname);
+ return;
+ }
+
+ { /* add a / after the dirname, in case the user didn't */
+ gchar *dirname_tmp = NULL;
+ int dirname_last_char = strlen (dirname) - 1;
+
+ if (dirname[dirname_last_char] != G_DIR_SEPARATOR) {
+ dirname_tmp = g_strconcat (dirname, G_DIR_SEPARATOR_S, NULL);
+ g_free (dirname);
+ dirname = dirname_tmp;
+ }
+ }
+
/* return to first children */
if (!partinfo->parent->children) return; /* multipart container? */
attachment = partinfo->parent->children->next;