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 *
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit