[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdenetwork/kopete/protocols/yahoo
From: Chetan Reddy <chetan13 () gmail ! com>
Date: 2005-05-23 21:41:00
Message-ID: 1116884460.465860.3753.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 417546 by chetan:
Enable webcam and buzz actions on a yahoo contact only if the contact is reachable.
M +8 -2 yahoocontact.cpp
--- trunk/KDE/kdenetwork/kopete/protocols/yahoo/yahoocontact.cpp #417545:417546
@@ -198,24 +198,30 @@
QPtrList<KAction> *YahooContact::customContextMenuActions()
{
-
QPtrList<KAction> *actionCollection = new QPtrList<KAction>();
if ( !m_webcamAction )
{
m_webcamAction = new KAction( i18n( "View &Webcam" ), "camera_unmount", \
KShortcut(),
this, SLOT( requestWebcam() ), this, "view_webcam" \
); }
+ if ( isReachable() )
+ m_webcamAction->setEnabled( true );
+ else
+ m_webcamAction->setEnabled( false );
actionCollection->append( m_webcamAction );
if ( !m_buzzAction )
{
m_buzzAction = new KAction( i18n( "&Buzz Contact" ), KShortcut(), this, SLOT( \
buzzContact() ), this, "buzz_contact"); }
+ if ( isReachable() )
+ m_buzzAction->setEnabled( true );
+ else
+ m_buzzAction->setEnabled( false );
actionCollection->append( m_buzzAction );
return actionCollection;
-
//return 0L;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic