Author: akv
Date: 2013-05-04 12:36:49 +0200 (Sat, 04 May 2013)
New Revision: 4381
Modified:
branches/4175-enfuse/src/rs-actions.c
Log:
Only allow usage of Enfuse functionality if one or more photo is selected...
Modified: branches/4175-enfuse/src/rs-actions.c
===================================================================
--- branches/4175-enfuse/src/rs-actions.c 2013-05-04 10:29:32 UTC (rev
4380)
+++ branches/4175-enfuse/src/rs-actions.c 2013-05-04 10:36:49 UTC (rev
4381)
@@ -111,7 +111,7 @@
rs_core_action_group_set_sensivity("RotateCounterClockwise",
RS_IS_PHOTO(rs->photo));
rs_core_action_group_set_sensivity("Flip", RS_IS_PHOTO(rs->photo));
rs_core_action_group_set_sensivity("Mirror", RS_IS_PHOTO(rs->photo));
- rs_core_action_group_set_sensivity("Enfuse", rs_has_enfuse(4,0));
+ rs_core_action_group_set_sensivity("Enfuse", rs_has_enfuse(4,0) &&
num_selected >= 1);
#ifndef EXPERIMENTAL
rs_core_action_group_set_visibility("Group", FALSE);
rs_core_action_group_set_visibility("Ungroup", FALSE);
@@ -1542,6 +1542,8 @@
gint num_selected = g_list_length(selected_names);
guint priority = rs_store_get_current_priority(rs->store);
+ g_assert(selected_names);
+
gchar *temp = g_list_nth_data(selected_names, 0);
RS_PHOTO *temp_photo = rs_photo_load_from_file(temp);
gint maxsize = 0;
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit