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/stackedwidget.py

    r11100 r11365  
    165165        """ 
    166166        index = self.__widgets.index(widget) 
    167         item = self.layout().takeAt(index) 
    168         assert(item.widget() is widget) 
     167        self.layout().removeWidget(widget) 
    169168        self.__widgets.pop(index) 
    170         widget.deleteLater() 
    171169 
    172170    def widget(self, index): 
Note: See TracChangeset for help on using the changeset viewer.