From 6fa9d35322044c63080dcda501e43d8600c99375 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 23 Mar 2012 08:11:55 +0100 Subject: [PATCH] Use an ActionGroup for Move To Desktop entries Virtual Desktops are mutual exclusive, so an ActionGroup is better suited. REVIEW: 104378 --- useractions.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/useractions.cpp b/useractions.cpp index 05c45ebc67..120481bfb1 100644 --- a/useractions.cpp +++ b/useractions.cpp @@ -458,9 +458,11 @@ void Workspace::desktopPopupAboutToShow() return; desk_popup->clear(); + QActionGroup *group = new QActionGroup(desk_popup); QAction *action = desk_popup->addAction(i18n("&All Desktops")); action->setData(0); action->setCheckable(true); + group->addAction(action); if (active_popup_client && active_popup_client->isOnAllDesktops()) action->setChecked(true); @@ -475,6 +477,7 @@ void Workspace::desktopPopupAboutToShow() action = desk_popup->addAction(basic_name.arg(i).arg(desktopName(i).replace('&', "&&"))); action->setData(i); action->setCheckable(true); + group->addAction(action); if (active_popup_client && !active_popup_client->isOnAllDesktops() && active_popup_client->desktop() == i)