[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenetwork/kopete/libkopete
From: Will Stephenson <lists () stevello ! free-online ! co ! uk>
Date: 2005-02-22 22:31:14
Message-ID: 20050222223114.D1074EED3 () office ! kde ! org
[Download RAW message or body]
CVS commit by wstephens:
Make the Online action behave intuitively in response to feedback - connect all \
except excluded if all are offline, otherwise set those that are not Available to \
Available.
M +11 -2 kopeteaccountmanager.cpp 1.65
--- kdenetwork/kopete/libkopete/kopeteaccountmanager.cpp #1.64:1.65
@@ -95,8 +95,17 @@ void AccountManager::setAvailableAll()
{
Away::setGlobalAway( false );
+ bool anyConnected = false;
for ( QPtrListIterator<Account> it( d->accounts ); it.current(); ++it )
{
+ anyConnected |= it.current()->isConnected();
+ }
+
+ for ( QPtrListIterator<Account> it( d->accounts ); it.current(); ++it )
+ {
+ if ( anyConnected )
+ {
if ( it.current()->isConnected() && it.current()->isAway() )
it.current()->setAway( false );
+ }
else
if(!it.current()->excludeConnect())
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic