[Rawstudio-commit] r2984 - branches/rawstudio-ng-color/src

Anders Kvist anders at kvistmail.dk
Thu Jan 14 00:57:54 CET 2010


Author: akv
Date: 2010-01-14 00:57:54 +0100 (Thu, 14 Jan 2010)
New Revision: 2984

Modified:
   branches/rawstudio-ng-color/src/rs-toolbox.c
Log:
Only running single lens editor if rs_lens is set in toolbox (photo opened).

Modified: branches/rawstudio-ng-color/src/rs-toolbox.c
===================================================================
--- branches/rawstudio-ng-color/src/rs-toolbox.c	2010-01-13 23:31:27 UTC (rev 2983)
+++ branches/rawstudio-ng-color/src/rs-toolbox.c	2010-01-13 23:57:54 UTC (rev 2984)
@@ -626,13 +626,16 @@
 {
 	gint i;
 	RSToolbox *toolbox = user_data;
-	gtk_dialog_run(rs_lens_db_editor_single_lens(toolbox->rs_lens));
-	/* Make sure we set to all 3 snapshots */
-	for(i=0; i<3; i++) toolbox_lens_set_label(toolbox, i);
-	RSLensDb *lens_db = rs_lens_db_get_default();
-	rs_lens_db_save(lens_db);
-	/* FIXME: set lensfun plugin dirty */
-	/* FIXME: set photo dirty (force update) */
+	if (toolbox->rs_lens)
+	{
+		gtk_dialog_run(rs_lens_db_editor_single_lens(toolbox->rs_lens));
+		/* Make sure we set to all 3 snapshots */
+		for(i=0; i<3; i++) toolbox_lens_set_label(toolbox, i);
+		RSLensDb *lens_db = rs_lens_db_get_default();
+		rs_lens_db_save(lens_db);
+		/* FIXME: set lensfun plugin dirty */
+		/* FIXME: set photo dirty (force update) */
+	}
 }
 
 static GtkWidget *




More information about the Rawstudio-commit mailing list