You have been subscribed to a public bug:

Binary package hint: libqt4-ruby1.8

I installed libqt4-ruby1.8 from Hardy's repos. The application I'm working on 
stopped working ( it was all ok in Gutsy).
I traced the error to:

index = createIndex(parentItem.row, 0, somePointer)
index.internalPointer
# nil

whatever the object I pass to createIndex, internalPointer always
returns nil. ( it's supposed to return the object it self ).

To check the bug, one can run simpletreemodel shipped in
libqt4-ruby1.8-examples, here's the output

./treemodel.rb:96:in `parent': undefined method `parent' for nil:NilClass 
(NoMethodError)
        from main.rb:37:in `method_missing'
        from main.rb:37

and here's the lines from treemodel.rb that are raising the exception:

        
95          childItem = index.internalPointer
96          parentItem = childItem.parent
        

Note: the c++ version of the simpletreemodel example compiles and runs
well, so this is no a Qt bug. It's in the bindings for sure.

** Affects: kdebindings (Ubuntu)
     Importance: Low
         Status: New

-- 
libqt4-ruby errors, simpletreemodel example raises an exception
https://bugs.edge.launchpad.net/bugs/229325
You received this bug notification because you are a member of Kubuntu Team, 
which is subscribed to kdebindings in ubuntu.

-- 
kubuntu-bugs mailing list
[EMAIL PROTECTED]
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs

Reply via email to