Changeset 9390:dbb5207e3a5b in orange


Ignore:
Timestamp:
12/20/11 20:03:57 (2 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
ba74c0eb61b174b91e4d44a829cc8cf2da18a912
Message:

Fixed moving points, added right click unselect in selection mode.

File:
1 edited

Legend:

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

    r9219 r9390  
    12491249        a = self.mouse_action(event) 
    12501250         
    1251         if a == SELECT and self._pressed_point is not None and hasattr(self, 'move_selected_points'): 
     1251        if a == SELECT and self._pressed_point is not None and self._pressed_point.is_selected() and hasattr(self, 'move_selected_points'): 
    12521252            animate_points = self.animate_points 
    12531253            self.animate_points = False 
     
    13311331            point_item = self.nearest_point(point) 
    13321332            b = self.selection_behavior 
     1333             
    13331334            if b == self.ReplaceSelection: 
    13341335                self.unselect_all_points() 
    13351336                b = self.AddSelection 
     1337             
    13361338            if point_item: 
    13371339                point_item.set_selected(b == self.AddSelection or (b == self.ToggleSelection and not point_item.is_selected())) 
     
    13411343            if point_item: 
    13421344                self.emit(SIGNAL('point_rightclicked(Point*)'), self.nearest_point(point)) 
     1345            else: 
     1346                self.unselect_all_points() 
    13431347        else: 
    13441348            return False 
Note: See TracChangeset for help on using the changeset viewer.