From 224946e39440501fe0197107eba7e7e225e4e2c1 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Mon, 11 Mar 2013 12:49:38 +0100 Subject: [PATCH] less jumping around and desktop assumptions --- src/plasma/applet.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/plasma/applet.cpp b/src/plasma/applet.cpp index 447cc0a35..8870bf221 100644 --- a/src/plasma/applet.cpp +++ b/src/plasma/applet.cpp @@ -319,20 +319,11 @@ QString Applet::title() const return d->customTitle; } - if (d->isContainment) { - const Containment *c = qobject_cast(this); - if (c && c->d->isPanelContainment()) { - return i18n("Panel"); - } else if (!d->appletDescription.isValid()) { - return i18n("Unknown"); - } else { - return d->appletDescription.name(); - } - } else if (!d->appletDescription.isValid()) { - return i18n("Unknown Widget"); + if (d->appletDescription.isValid()) { + return d->appletDescription.name(); } - return d->appletDescription.name(); + return i18n("Unknown"); } void Applet::setTitle(const QString &title) const