From 01d626b7f48c55a86e083f31693fbbe4401269bb Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 10 Sep 2009 20:31:45 +0000 Subject: [PATCH] toggle toolbox only if it was visible svn path=/trunk/KDE/kdelibs/; revision=1022111 --- private/desktoptoolbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/private/desktoptoolbox.cpp b/private/desktoptoolbox.cpp index 8a10156ea..984f68afc 100644 --- a/private/desktoptoolbox.cpp +++ b/private/desktoptoolbox.cpp @@ -308,7 +308,7 @@ void DesktopToolBox::toolTriggered(bool) { QAction *action = qobject_cast(sender()); - if (!action || !action->autoRepeat()) { + if (showing() && (!action || !action->autoRepeat())) { emit toggled(); } }