* fixes NB#62982 (wrong logical id)
authorDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Tue, 10 Jul 2007 14:33:15 +0000 (14:33 +0000)
committerDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Tue, 10 Jul 2007 14:33:15 +0000 (14:33 +0000)
* add NULL check to modest_maemo_utils_folder_writable as it *always* seemed
  to crash in my sbox

pmo-trunk-r2673

src/maemo/modest-maemo-utils.c
src/maemo/modest-msg-view-window.c

index be36a17..9e09a79 100644 (file)
@@ -203,6 +203,11 @@ modest_maemo_utils_get_device_name (void)
 gboolean 
 modest_maemo_utils_folder_writable (const gchar *filename)
 {
+       g_return_val_if_fail (filename, FALSE);
+
+       if (!filename)
+               return FALSE;
+       
        if (g_strncasecmp (filename, "obex", 4) != 0) {
                GnomeVFSFileInfo folder_info;
                gchar *folder;
index ad269fc..d594482 100644 (file)
@@ -1734,7 +1734,8 @@ save_mime_part_to_file (const gchar *filename, TnyMimePart *mime_part)
        GnomeVFSHandle *handle;
        TnyStream *stream;
 
-       hildon_banner_show_information (NULL, NULL, _("mail_ib_saving_mime_part"));
+       hildon_banner_show_information (NULL, NULL, 
+                       _CS("sfil_ib_saving"));
        result = gnome_vfs_create (&handle, filename, GNOME_VFS_OPEN_WRITE, FALSE, 0777);
        if (result != GNOME_VFS_OK) {
                hildon_banner_show_information (NULL, NULL, _("mail_ib_file_operation_failed"));