[Kde-bindings] KDE/kdebindings/ruby/qtruby

Richard Dale Richard_Dale at tipitina.demon.co.uk
Fri Aug 22 17:27:54 UTC 2008


SVN commit 850968 by rdale:

* The disposed? method was round the wrong way, and true if an instance
  had not been disposed. Thanks to Stefano Crocco for finding the bug.

CCMAIL: kde-bindings at kde.org


 M  +5 -0      ChangeLog  
 M  +1 -2      src/qtruby.cpp  


--- trunk/KDE/kdebindings/ruby/qtruby/ChangeLog #850967:850968
@@ -1,3 +1,8 @@
+2008-08-18  Richard Dale  <richard.j.dale at gmail.com>
+
+	* The disposed? method was round the wrong way, and true if an instance
+	  had not been disposed. Thanks to Stefano Crocco for finding the bug.
+
 2008-08-12  Richard Dale  <richard.j.dale at gmail.com>
 
 	* The new qobject_cast() method was wrongly changing the smoke classId of
--- trunk/KDE/kdebindings/ruby/qtruby/src/qtruby.cpp #850967:850968
@@ -1926,8 +1926,7 @@
 is_disposed(VALUE self)
 {
 	smokeruby_object *o = value_obj_info(self);
-	if(o && o->ptr) { return Qtrue; }
-	return Qfalse;
+	return (o != 0 && o->ptr != 0) ? Qfalse : Qtrue;
 }
 
 VALUE



More information about the Kde-bindings mailing list