From f90ee4e28dcef95df4b0a383ceceda9cb76aa3bf Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Sat, 11 Sep 2010 00:48:15 +0000 Subject: [PATCH] add the separator in a slightly more appropriate moment svn path=/trunk/KDE/kdelibs/; revision=1173978 --- containment.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/containment.cpp b/containment.cpp index 13f1a81be..2fe674f86 100644 --- a/containment.cpp +++ b/containment.cpp @@ -704,13 +704,13 @@ void ContainmentPrivate::addAppletActions(KMenu &desktopMenu, Applet *applet, QE } if (q->immutability() == Mutable) { - if (!desktopMenu.isEmpty()) { - desktopMenu.addSeparator(); - } - QAction *closeApplet = applet->d->actions->action("remove"); kDebug() << "checking for removal" << closeApplet; if (closeApplet) { + if (!desktopMenu.isEmpty()) { + desktopMenu.addSeparator(); + } + kDebug() << "boo yah, adding it!" << closeApplet->isEnabled() << closeApplet->isVisible(); desktopMenu.addAction(closeApplet); }