Ignore:
Timestamp:
02/21/13 20:02:00 (14 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Changed ToolBox.removeItem and StackedWidget.removeWidget to not delete the widget.

This follows standard Qt4's semantics.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/gui/toolbox.py

    r11280 r11365  
    355355 
    356356        page.button.deleteLater() 
    357         page.widget.deleteLater() 
     357 
     358        # Hide the widget and reparent to self 
     359        # This follows QToolBox.removeItem 
     360        page.widget.hide() 
     361        page.widget.setParent(self) 
    358362 
    359363        self.__updatePositions() 
Note: See TracChangeset for help on using the changeset viewer.