Author: post
Date: 2011-04-11 14:34:46 +0200 (Mon, 11 Apr 2011)
New Revision: 3977

Modified:
   trunk/src/rs-actions.c
Log:
Display notification when setting camera default settings.

Modified: trunk/src/rs-actions.c
===================================================================
--- trunk/src/rs-actions.c      2011-04-11 11:59:38 UTC (rev 3976)
+++ trunk/src/rs-actions.c      2011-04-11 12:34:46 UTC (rev 3977)
@@ -692,8 +692,14 @@
 
 ACTION(save_default_settings)
 {
-       if (RS_IS_PHOTO(rs->photo))
+       if (RS_IS_PHOTO(rs->photo) && rs->photo->metadata)
+       {
                rs_camera_db_save_defaults(rs_camera_db_get_singleton(), 
rs->photo);
+               GString *gs = g_string_new("");
+               g_string_printf(gs, _("Settings saved as default for %s %s"), 
rs->photo->metadata->make_ascii, rs->photo->metadata->model_ascii);
+               gui_status_notify(gs->str);
+               g_string_free(gs, TRUE);
+       }
 }
 
 ACTION(preferences)


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

Reply via email to