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:
Marco Martin 2008-12-18 12:32:06 +00:00
parent 3cab60d833
commit 5e421239c9
2 changed files with 3 additions and 0 deletions

View File

@ -435,6 +435,7 @@ void DesktopToolBox::showToolBox()
}
if (tool->isEnabled()) {
tool->show();
//kDebug() << tool << "is enabled";
y += 5;
QSize toolSize = tool->boundingRect().size().toSize();

View File

@ -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();
}
}