backport r1062035: don't delete all of info pane's children on clear or newer

oxygen versions (KDE SC 4.4) make us crash.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1062036
This commit is contained in:
Volker Lanz 2009-12-13 16:00:33 +00:00
parent 4ce72c8269
commit 7ab322b49c
1 changed files with 1 additions and 3 deletions

View File

@ -33,7 +33,6 @@
#include <kglobal.h>
#include <kglobalsettings.h>
#include <klocale.h>
#include <kdebug.h>
/** Creates a new InfoPane instance
@param parent the parent widget
@ -48,8 +47,7 @@ InfoPane::InfoPane(QWidget* parent) :
void InfoPane::clear()
{
parentWidget()->setWindowTitle(i18nc("@title:window", "Information"));
qDeleteAll(findChildren<QLabel*>());
qDeleteAll(findChildren<QFrame*>());
qDeleteAll(findChildren<QWidget*>());
}
int InfoPane::createHeader(const QString& title)