Changeset 8574:41403b643bc1 in orange


Ignore:
Timestamp:
08/02/11 13:19:40 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
51e58213cf1420b7964725f032aa7b913b13f5c7
Message:

Don't emit selection_changed twice when replacing the selection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orangeplot/plot.cpp

    r8572 r8574  
    184184    if (behavior == ReplaceSelection) 
    185185    { 
     186        bool b = blockSignals(true); 
    186187        unselect_all_points(); 
    187188        behavior = AddSelection; 
     189        blockSignals(b); 
    188190    } 
    189191    set_points_state(rect, scene(), Point::Selected, behavior); 
     
    195197    if (behavior == ReplaceSelection) 
    196198    { 
     199        bool b = blockSignals(true); 
    197200        unselect_all_points(); 
    198201        behavior = AddSelection; 
     202        blockSignals(b); 
    199203    } 
    200204    set_points_state(area, scene(), Point::Selected, behavior); 
Note: See TracChangeset for help on using the changeset viewer.