[Kde-bindings] KDE/kdebindings/ruby/qtruby
    Richard Dale 
    Richard_Dale at tipitina.demon.co.uk
       
    Mon Nov 17 20:25:30 UTC 2008
    
    
  
SVN commit 885740 by rdale:
2008-11-17  Richard Dale  <richard.j.dale at gmail.com>
	* Comparisons between Qt instances and nil were causing QtRuby to
	  crash. Fixes bug reported by Stefano Croco.
CCMAIL: kde-bindings at kde.org
 M  +4 -0      ChangeLog  
 M  +2 -0      src/lib/Qt/qtruby4.rb  
--- trunk/KDE/kdebindings/ruby/qtruby/ChangeLog #885739:885740
@@ -1,3 +1,7 @@
+2008-11-17  Richard Dale  <richard.j.dale at gmail.com>
+	* Comparisons between Qt instances and nil were causing QtRuby to
+	  crash. Fixes bug reported by Stefano Croco.
+
 2008-09-22  Richard Dale  <richard.j.dale at gmail.com>
 
 	* Rename get_VALUEtype() as value_to_type_flag()
--- trunk/KDE/kdebindings/ruby/qtruby/src/lib/Qt/qtruby4.rb #885739:885740
@@ -151,6 +151,8 @@
 #		Object has a '==' operator instance method, so pretend it
 #		don't exist by calling method_missing() explicitely
 		def ==(a)
+
+			return false if a.nil?
 			begin
 				Qt::method_missing(:==, self, a)
 			rescue
    
    
More information about the Kde-bindings
mailing list