Commits

Aleš Erjavec committed 1afbda1

Activate an item on a click (an not just a press).

  • Participants
  • Parent commits 30c1378

Comments (0)

Files changed (1)

File Orange/OrangeCanvas/gui/tooltree.py

         view.setItemDelegate(ToolTreeItemDelegate(self))
 
         view.activated.connect(self.__onActivated)
-        view.pressed.connect(self.__onPressed)
+        view.clicked.connect(self.__onActivated)
         view.entered.connect(self.__onEntered)
 
         view.installEventFilter(self)
                 action.trigger()
                 self.triggered.emit(action)
 
-    def __onPressed(self, index):
-        self.__onActivated(index)
-
     def __onEntered(self, index):
         if index.isValid():
             action = self.__actionForIndex(index)