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:
parent
a46c65d132
commit
a0d27b40d0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue