From kde-commits Mon May 31 22:42:51 2010 From: =?utf-8?q?Aaron=20J=2E=20Seigo?= Date: Mon, 31 May 2010 22:42:51 +0000 To: kde-commits Subject: KDE/kdelibs/plasma/widgets Message-Id: <20100531224252.0550AAC8C6 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=127534539707006 SVN commit 1133021 by aseigo: if we have a popup associated with our icon, show it BUG:240265 M +5 -0 iconwidget.cpp --- trunk/KDE/kdelibs/plasma/widgets/iconwidget.cpp #1133020:1133021 @@ -30,6 +30,7 @@ #include #include #include +#include #include #include @@ -1395,7 +1396,11 @@ if (KGlobalSettings::singleClick()) { emit activated(); } + + if (d->action && d->action->menu()) { + d->action->menu()->popup(event->screenPos()); } + } emit pressed(false); }