ayatana-commits team mailing list archive
-
ayatana-commits team
-
Mailing list archive
-
Message #00902
[Branch ~agateau/plasma-widget-message-indicator/trunk] Rev 112: Mmmm... Plasma is mono-process... better reuse the listener
------------------------------------------------------------
revno: 112
committer: Aurelien Gateau <aurelien.gateau@xxxxxxxxxxxxx>
branch nick: plasma-widget-message-indicator
timestamp: Fri 2010-02-12 12:43:16 +0100
message:
Mmmm... Plasma is mono-process... better reuse the listener
Otherwise we crash in dbus-glib.
modified:
src/message-indicator.cpp
--
lp:plasma-widget-message-indicator
https://code.launchpad.net/~agateau/plasma-widget-message-indicator/trunk
Your team ayatana-commits is subscribed to branch lp:plasma-widget-message-indicator.
To unsubscribe from this branch go to https://code.launchpad.net/~agateau/plasma-widget-message-indicator/trunk/+edit-subscription.
=== modified file 'src/message-indicator.cpp'
--- src/message-indicator.cpp 2010-02-12 10:46:57 +0000
+++ src/message-indicator.cpp 2010-02-12 11:43:16 +0000
@@ -40,7 +40,7 @@
MessageIndicator::MessageIndicator(QObject* parent, const QVariantList& args)
: Plasma::PopupApplet(parent, args)
-, mListener(0)
+, mListener(QIndicate::Listener::defaultInstance())
, mSourceModel(0)
, mStack(new QWidget)
, mView(new ExpandedTreeView(mStack))
@@ -79,7 +79,6 @@
void MessageIndicator::init()
{
Plasma::ToolTipManager::self()->registerWidget(this);
- mListener = new QIndicate::Listener(this);
connect(mListener,
SIGNAL(serverAdded(QIndicate::Listener::Server*, const QString&)),
SLOT(slotServerAdded(QIndicate::Listener::Server*))