Changeset 11268:ab6d28c3472d in orange


Ignore:
Timestamp:
01/22/13 12:26:05 (15 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixed blocking 'delay_method_call'.

QCoreApplication.flush processed only platform specific events.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/application/outputview.py

    r11258 r11268  
    236236    @wraps(method) 
    237237    def delay_method_call(self, *args, **kwargs): 
    238         event = QueuedCallEvent(method, args, kwargs) 
     238        event = QueuedCallEvent(method, (self,) + args, kwargs) 
    239239        QCoreApplication.postEvent(self, event) 
    240         QCoreApplication.flush() 
     240        QCoreApplication.sendPostedEvents() 
    241241        return event.result() 
    242242 
     
    246246class TextStream(QObject): 
    247247    stream = Signal(basestring) 
    248     flushed = Signal(basestring) 
     248    flushed = Signal() 
    249249 
    250250    def __init__(self, parent=None): 
Note: See TracChangeset for help on using the changeset viewer.