[Rawstudio-commit] r3172 - trunk/src

Anders Brander anders at brander.dk
Fri Feb 12 21:34:39 CET 2010


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))




More information about the Rawstudio-commit mailing list