Author: post
Date: 2011-01-14 12:28:55 +0100 (Fri, 14 Jan 2011)
New Revision: 3800
Modified:
trunk/src/rs-actions.c
Log:
Correctly detect when images can be added/removed from queue.
Modified: trunk/src/rs-actions.c
===================================================================
--- trunk/src/rs-actions.c 2011-01-14 11:21:44 UTC (rev 3799)
+++ trunk/src/rs-actions.c 2011-01-14 11:28:55 UTC (rev 3800)
@@ -120,8 +120,8 @@
rs_core_action_group_set_sensivity("Lightsout", !rs->window_fullscreen);
/* Batch Menu */
- rs_core_action_group_set_sensivity("AddToBatch", photos_selected &&
rs->photo && !rs_batch_exists_in_queue(rs->queue, rs->photo->filename,
rs->current_setting));
- 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("AddToBatch", (num_selected >= 1) ||
(rs->photo && !rs_batch_exists_in_queue(rs->queue, rs->photo->filename,
rs->current_setting)));
+ rs_core_action_group_set_sensivity("RemoveFromBatch", (num_selected >=
1) || (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));
/* Preview */
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit