summaryrefslogtreecommitdiffabout
path: root/libkdepim
Side-by-side diff
Diffstat (limited to 'libkdepim') (more/less context) (show whitespace changes)
-rw-r--r--libkdepim/kprefswidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libkdepim/kprefswidget.cpp b/libkdepim/kprefswidget.cpp
index be9ad30..f6a0b38 100644
--- a/libkdepim/kprefswidget.cpp
+++ b/libkdepim/kprefswidget.cpp
@@ -283,16 +283,17 @@ QLineEdit *KPrefsWidString::lineEdit()
return mEdit;
}
KPrefsWidget::KPrefsWidget(KPrefs *prefs,QWidget *parent,const char *name) :
QWidget(parent, name )
{
mPrefs = prefs;
+ mPrefsWids.setAutoDelete( true );
}
KPrefsWidget::~KPrefsWidget()
{
}
void KPrefsWidget::addWid(KPrefsWid *wid)
{