mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 10:52:51 +00:00
Revert "plasma: plug keyboard applet memory leak"
This reverts commit b77b83565f
.
This commit is contained in:
parent
d1874e4964
commit
c4ef054ebd
1 changed files with 1 additions and 4 deletions
|
@ -42,7 +42,6 @@ KeyboardApplet::KeyboardApplet(QObject *parent, const QVariantList &args)
|
|||
|
||||
KeyboardApplet::~KeyboardApplet()
|
||||
{
|
||||
delete m_spacer;
|
||||
}
|
||||
|
||||
void KeyboardApplet::init()
|
||||
|
@ -123,9 +122,7 @@ void KeyboardApplet::createConfigurationInterface(KConfigDialog *parent)
|
|||
m_indicatorbox->setCurrentIndex(0);
|
||||
}
|
||||
widgetlayout->addWidget(m_indicatorbox);
|
||||
if (!m_spacer) {
|
||||
m_spacer = new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
}
|
||||
m_spacer = new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
widgetlayout->addSpacerItem(m_spacer);
|
||||
widget->setLayout(widgetlayout);
|
||||
parent->addPage(widget, i18n("Indicator"), "applications-graphics");
|
||||
|
|
Loading…
Add table
Reference in a new issue