[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.4/kdebase/workspace/plasma/generic/applets/systemtray/protocols/plasmoid
From: Marco Martin <notmart () gmail ! com>
Date: 2010-04-23 12:36:34
Message-ID: 20100423123634.DF66BAC8A0 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1117912 by mart:
backport a removal of code duplication in prevision of a bigger fix (since the design \
in 4.4 is conceptually wrong and buggy)
M +1 -16 plasmoidtaskprotocol.cpp
--- branches/KDE/4.4/kdebase/workspace/plasma/generic/applets/systemtray/protocols/plasmoid/plasmoidtaskprotocol.cpp \
#1117911:1117912 @@ -73,23 +73,8 @@
continue;
}
- kDebug() << "Registering task with the manager" << appletName;
+ addApplet(appletName, parent);
- PlasmoidTask *task = new PlasmoidTask(appletName, groupName.toInt(), this, \
parent);
- Plasma::Applet *applet = qobject_cast<Plasma::Applet *>(task->widget(parent, \
true));
- if (applet) {
- applet->restore(childGroup);
- }
-
- if (!task->isValid()) {
- // we failed to load our applet *sob*
- delete task;
- continue;
- }
-
- m_tasks.insert(appletName, task);
- connect(task, SIGNAL(taskDeleted(QString)), this, \
SLOT(cleanupTask(QString)));
- emit taskCreated(task);
existingTasks.remove(appletName);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic