Ignore:
Timestamp:
01/10/13 19:49:16 (15 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Update from the new settings after the settings dialog is closed.

File:
1 edited

Legend:

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

    r11250 r11256  
    194194                                       submitPolicy=BindingManager.AutoSubmit) 
    195195 
     196        self.__loop = None 
     197 
    196198        self.__settings = config.settings() 
    197199        self.__setupUi() 
     
    280282        self.bind(cb2, "checked", "quickmenu/trigger-on-left-click") 
    281283        self.bind(cb3, "checked", "quickmenu/trigger-on-space-key") 
    282         self.bind(cb3, "checked", "quickmenu/trigger-on-any-key") 
     284        self.bind(cb4, "checked", "quickmenu/trigger-on-any-key") 
    283285 
    284286        quickmenu.layout().addWidget(cb1) 
     
    467469 
    468470    def exec_(self): 
    469         loop = QEventLoop() 
     471        self.__loop = QEventLoop() 
    470472        self.show() 
    471         status = loop.exec_() 
     473        status = self.__loop.exec_() 
     474        self.__loop = None 
     475        return status 
    472476 
    473477    def showEvent(self, event): 
     
    476480        return QMainWindow.showEvent(self, event) 
    477481 
     482    def hideEvent(self, event): 
     483        QMainWindow.hideEvent(self, event) 
     484        self.__loop.exit(0) 
     485 
    478486    def __macOnToolBarAction(self, action): 
    479487        index, _ = action.data().toInt() 
Note: See TracChangeset for help on using the changeset viewer.