Changeset 11399:ad4d1c89c266 in orange


Ignore:
Timestamp:
03/14/13 11:03:28 (13 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Test for a change in floating window flags before updating.

File:
1 edited

Legend:

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

    r11392 r11399  
    112112        # Fist show after floating 
    113113        self.__firstShow = True 
    114         # flags to use while floating 
     114        # Flags to use while floating 
    115115        self.__windowFlags = Qt.Window 
    116116        self.setWindowFlags(self.__windowFlags) 
     
    129129        Set `windowFlags` to use while the widget is floating (undocked). 
    130130        """ 
    131         self.__windowFlags = flags 
    132         if self.isFloating(): 
    133             self.__fixWindowFlags() 
     131        if self.__windowFlags != flags: 
     132            self.__windowFlags = flags 
     133            if self.isFloating(): 
     134                self.__fixWindowFlags() 
    134135 
    135136    def floatingWindowFlags(self): 
Note: See TracChangeset for help on using the changeset viewer.