always keep toold hidden when their enabled/disabled status changes
unhide all the enabled ones when the toolbox is opened BUG:178014 svn path=/trunk/KDE/kdelibs/; revision=898560
This commit is contained in:
parent
3cab60d833
commit
5e421239c9
@ -435,6 +435,7 @@ void DesktopToolBox::showToolBox()
|
||||
}
|
||||
|
||||
if (tool->isEnabled()) {
|
||||
tool->show();
|
||||
//kDebug() << tool << "is enabled";
|
||||
y += 5;
|
||||
QSize toolSize = tool->boundingRect().size().toSize();
|
||||
|
@ -133,6 +133,8 @@ void ToolBox::updateToolBox()
|
||||
if (d->showing) {
|
||||
d->showing = false;
|
||||
showToolBox();
|
||||
} else if (Plasma::IconWidget *tool = qobject_cast<Plasma::IconWidget *>(sender())) {
|
||||
tool->hide();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user