Sorry, I've missed one thing. It should be: def self.decorate_thread(old_method, *args, &block) Qt::Application.instance.send :enable_ruby_threads send old_method, *args, &proc{ block.call *args; Qt::Application.instance.send :disable_ruby_threads } end Now it's possible to pass some arguments to thread's block. _______________________________________________ Kde-bindings mailing list Kde-bindings@kde.org https://mail.kde.org/mailman/listinfo/kde-bindings