noreply at rubyforge.org
2008-Apr-19 08:42 UTC
[wxruby-development] [ wxruby-Bugs-19646 ] BusyCursor.busy doesn''t restore cursor if leave block via rescue
Bugs item #19646, was opened at 2008-04-19 08:42 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=19646&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 2 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: BusyCursor.busy doesn''t restore cursor if leave block via rescue Initial Comment: The normal cursor won''t be restored if an exception is thrown and the block exits via rescue: begin BusyCursor.busy do ... end rescue end It would be better to add the static functions wxBeginBusyCursor and wxEndBusyCursor, and rewrite BusyCursor in pure ruby using these. Seems silly anyway to have a whole object file for this one function. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=19646&group_id=35