2005-08-22 [paul] 1.9.13cvs48
[claws.git] / src / textview.c
index 4a1876b542de2c2e79b8fe9caeb25573e01a79c2..95935bfc940495a5297e8570e75d4f2b0811b4bf 100644 (file)
@@ -1957,6 +1957,7 @@ static void open_image_cb (TextView *textview, guint action, void *data)
        const gchar *def_cmd;
        const gchar *p;
        gchar *filename = NULL;
+       gchar *tmp_filename = NULL;
 
        if (uri == NULL)
                return;
@@ -1974,6 +1975,10 @@ static void open_image_cb (TextView *textview, guint action, void *data)
 
        subst_for_filename(filename);
 
+       tmp_filename = g_filename_from_uri(uri->uri, NULL, NULL);
+       copy_file(tmp_filename, filename, FALSE);
+       g_free(tmp_filename);
+
        cmd = prefs_common.mime_image_viewer;
        def_cmd = default_cmdline;