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=/branches/partitionmanager/1.0/partitionmanager/; revision=1062038
This commit is contained in:
Volker Lanz 2009-12-13 16:07:44 +00:00
parent a46c65d132
commit a0d27b40d0
1 changed files with 3 additions and 1 deletions

View File

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