[Rawstudio-commit] r2018 - trunk/src

Anders Brander anders at brander.dk
Wed Sep 17 23:21:44 CEST 2008


Author: abrander
Date: 2008-09-17 23:21:44 +0200 (Wed, 17 Sep 2008)
New Revision: 2018

Modified:
   trunk/src/rs-actions.c
Log:
[222] Made RemoveFromBatch insensitive if current photo is not queued.

Modified: trunk/src/rs-actions.c
===================================================================
--- trunk/src/rs-actions.c	2008-09-17 21:20:39 UTC (rev 2017)
+++ trunk/src/rs-actions.c	2008-09-17 21:21:44 UTC (rev 2018)
@@ -117,7 +117,7 @@
 	photos_selected = (RS_IS_PHOTO(rs->photo) || (num_selected > 0));
 
 	rs_core_action_group_set_sensivity("AddToBatch", photos_selected);
-	rs_core_action_group_set_sensivity("RemoveFromBatch", photos_selected);
+	rs_core_action_group_set_sensivity("RemoveFromBatch", photos_selected && rs->photo && rs_batch_exists_in_queue(rs->queue, rs->photo->filename, rs->current_setting));
 	rs_core_action_group_set_sensivity("ProcessBatch", (rs_batch_num_entries(rs->queue)>0));
 	g_list_free(selected);
 }




More information about the Rawstudio-commit mailing list