Changeset 7174:4f4384fd7d8e in orange


Ignore:
Timestamp:
01/24/11 16:23:21 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
3462a4f075b8d5365a8fe1774f15dc4a3bdd5ccd
Message:
  • added a workaround for a bug in Qt QListWidget.updateGeometries (would call itself recursive and crash in some circumstances e.g. on first show of Select Data widget)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/OWGUI.py

    r7119 r7174  
    892892        else: 
    893893            ev.ignore() 
     894             
     895    def updateGeometries(self): 
     896        """ A workaround for a bug in Qt (see: http://bugreports.qt.nokia.com/browse/QTBUG-14412) 
     897        """  
     898        if getattr(self, "_updatingGeometriesNow", False): 
     899#            import sys 
     900#            print >> sys.stderr, "Suppressing recursive update geometries" 
     901            return 
     902        self._updatingGeometriesNow = True 
     903        try: 
     904            return QListWidget.updateGeometries(self) 
     905        finally: 
     906            self._updatingGeometriesNow = False 
    894907 
    895908 
Note: See TracChangeset for help on using the changeset viewer.