Author: abrander
Date: 2010-02-12 21:34:39 +0100 (Fri, 12 Feb 2010)
New Revision: 3172

Modified:
   trunk/src/rs-actions.c
Log:
Now creates profile directory in ACTION(add_profile) if needed.

Modified: trunk/src/rs-actions.c
===================================================================
--- trunk/src/rs-actions.c      2010-02-12 18:51:13 UTC (rev 3171)
+++ trunk/src/rs-actions.c      2010-02-12 20:34:39 UTC (rev 3172)
@@ -931,6 +931,7 @@
                gchar *path = 
gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog));
                gchar *basename = g_path_get_basename(path);
                const gchar *userdir = 
rs_profile_factory_get_user_profile_directory();
+               g_mkdir_with_parents(userdir, 00755);
                gchar *new_path = g_build_filename(userdir, basename, NULL);
 
                if (rs_file_copy(path, new_path))


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to