Changeset 8918:e36320ee663d in orange


Ignore:
Timestamp:
09/07/11 11:47:24 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
461deb334d9fde02fcde272ce3a7cdd05f12b8d4
Message:

Prevent infinite recusrsion with Select button

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/plot/owplotgui.py

    r8896 r8918  
    120120        for i in buttons: 
    121121            b = gui.tool_button(i, self) 
    122             QObject.connect(b, SIGNAL("clicked(bool)"), self.button_clicked) 
     122            QObject.connect(b, SIGNAL("triggered(QAction*)"), self.button_clicked) 
    123123            self.buttons[i] = b 
    124124            self.layout().addWidget(b) 
     
    172172         
    173173    def setDown(self, down): 
    174         self.emit(SIGNAL("downChanged(bool)"), down) 
     174        if self.isDown() != down: 
     175            self.emit(SIGNAL("downChanged(bool)"), down) 
    175176        QToolButton.setDown(self, down) 
    176177     
     
    441442        b.setMenu(m) 
    442443        QObject.connect(m, SIGNAL("triggered(QAction*)"), b, SLOT("setDefaultAction(QAction*)")) 
    443         QObject.connect(m, SIGNAL("triggered(QAction*)"), b.click) 
    444444 
    445445        if main_action_id: 
Note: See TracChangeset for help on using the changeset viewer.