Author: post
Date: 2010-12-19 23:54:58 +0100 (Sun, 19 Dec 2010)
New Revision: 3693

Modified:
   trunk/src/rs-actions.c
Log:
Fix menu crash if no image is loaded.

Modified: trunk/src/rs-actions.c
===================================================================
--- trunk/src/rs-actions.c      2010-12-19 21:35:56 UTC (rev 3692)
+++ trunk/src/rs-actions.c      2010-12-19 22:54:58 UTC (rev 3693)
@@ -120,7 +120,7 @@
        rs_core_action_group_set_sensivity("Lightsout", !rs->window_fullscreen);
 
        /* Batch Menu */
-       rs_core_action_group_set_sensivity("AddToBatch", photos_selected && 
!rs_batch_exists_in_queue(rs->queue, rs->photo->filename, rs->current_setting));
+       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("ProcessBatch", 
(rs_batch_num_entries(rs->queue)>0));
 


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to