toggle toolbox only if it was visible

svn path=/trunk/KDE/kdelibs/; revision=1022111
This commit is contained in:
Marco Martin 2009-09-10 20:31:45 +00:00
parent fb365bfbf1
commit 01d626b7f4

View File

@ -308,7 +308,7 @@ void DesktopToolBox::toolTriggered(bool)
{
QAction *action = qobject_cast<QAction *>(sender());
if (!action || !action->autoRepeat()) {
if (showing() && (!action || !action->autoRepeat())) {
emit toggled();
}
}