ryanmelt / qtbindings

An easy to install gem version of the Ruby bindings to Qt
http://github.com/ryanmelt/qtbindings
Other
340 stars 63 forks source link

Fixed Qt::RubyThreadFix error #79

Closed BaderSZ closed 10 years ago

BaderSZ commented 10 years ago

This pull request is a fix for the error which requires individual programs to include "require 'thread'", such as seen in rbqtapi and various other programs:

/var/lib/gems/1.9.1/gems/qtbindings-4.8.5.2/lib/Qt4.rb:30:in `const_missing': uninitialized constant Qt::RubyThreadFix::Queue (NameError)
    from /var/lib/gems/1.9.1/gems/qtbindings-4.8.5.2/lib/Qt4.rb:30:in `<class:RubyThreadFix>'
    from /var/lib/gems/1.9.1/gems/qtbindings-4.8.5.2/lib/Qt4.rb:26:in `<module:Qt>'
    from /var/lib/gems/1.9.1/gems/qtbindings-4.8.5.2/lib/Qt4.rb:25:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /var/lib/gems/1.9.1/gems/qtbindings-4.8.5.2/bin/rbqtapi:6:in `<top (required)>'
    from /usr/local/bin/rbqtapi:23:in `load'
    from /usr/local/bin/rbqtapi:23:in `<main>'
BaderSZ commented 10 years ago

Also worth mentioning, the version used to test this patch is ruby "1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]"