-rw-r--r-- | libopie2/opieui/otabwidget.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libopie2/opieui/otabwidget.cpp b/libopie2/opieui/otabwidget.cpp index a9f7da9..d23b1c9 100644 --- a/libopie2/opieui/otabwidget.cpp +++ b/libopie2/opieui/otabwidget.cpp | |||
@@ -87,9 +87,12 @@ OTabWidget::OTabWidget( QWidget *parent, const char *name, TabStyle s, TabPositi | |||
87 | currTab= 0x0; | 87 | currTab= 0x0; |
88 | } | 88 | } |
89 | 89 | ||
90 | OTabWidget::~OTabWidget() | 90 | OTabWidget::~OTabWidget() |
91 | {} | 91 | { |
92 | tabs.setAutoDelete( true ); | ||
93 | tabs.clear(); | ||
94 | } | ||
92 | 95 | ||
93 | void OTabWidget::addTab( QWidget *child, const QString &icon, const QString &label ) | 96 | void OTabWidget::addTab( QWidget *child, const QString &icon, const QString &label ) |
94 | { | 97 | { |
95 | QPixmap iconset = loadSmooth( icon ); | 98 | QPixmap iconset = loadSmooth( icon ); |