[Kazehakase-cvs] CVS update: kazehakase/data/ext/ruby/kz

Back to archive index

Kouhei Sutou kous****@users*****
Wed Apr 26 10:17:55 JST 2006


Index: kazehakase/data/ext/ruby/kz/actions.rb
diff -u kazehakase/data/ext/ruby/kz/actions.rb:1.6 kazehakase/data/ext/ruby/kz/actions.rb:1.7
--- kazehakase/data/ext/ruby/kz/actions.rb:1.6	Sun Feb 12 00:29:52 2006
+++ kazehakase/data/ext/ruby/kz/actions.rb	Wed Apr 26 10:17:55 2006
@@ -49,11 +49,16 @@
       def reload_actions(kz)
         @@actions[kz].delete_if do |name|
           action = kz.actions.get_action(name)
+          kz.disconnect_action(action)
           kz.actions.remove_action(action)
           true
         end
 
         init_actions(kz)
+        @@actions[kz].each do |name|
+          action = kz.actions.get_action(name)
+          kz.connect_action(action)
+        end
       end
 
       def install_action(kz, name)


More information about the Kazehakase-cvs mailing list
Back to archive index