[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/kopete/plugins/nowlistening
From: Richard Smith <kde () metafoo ! co ! uk>
Date: 2003-03-21 3:39:04
[Download RAW message or body]
CVS commit by lilachaze:
We don't always have a metaContact for every contact. Prevent crash in
pathological cases, or when using ICQ.
M +4 -2 nowlisteningplugin.cpp 1.17
--- kdenonbeta/kopete/plugins/nowlistening/nowlisteningplugin.cpp #1.16:1.17
@@ -334,5 +334,5 @@ void NowListeningPlugin::advertiseToChat
// in our output
KopeteContactPtrList pl = theChat->members();
- QStringList myData;
+
// avoid skipping one member when removing
// (old version's pl.remove(); pl.next() skipped because
@@ -341,4 +341,6 @@ void NowListeningPlugin::advertiseToChat
while ( pl.current() )
{
+ QStringList myData;
+ if( pl.current()->metaContact() )
myData = pl.current()->metaContact()->pluginData( this, NL_DATA_KEY );
if ( myData.isEmpty() || myData.first() != "true" )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic