[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdenetwork/kopete/kopete
From:       Aleix Pol Gonzalez <aleixpol () gmail ! com>
Date:       2009-11-22 1:13:50
Message-ID: 1258852430.725959.28771.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1052536 by apol:

Remove duplicated code. Just for readability.


 M  +5 -12     systemtray.cpp  


--- trunk/KDE/kdenetwork/kopete/kopete/systemtray.cpp #1052535:1052536
@@ -133,21 +133,14 @@
 void KopeteSystemTray::startBlink( const QString &icon )
 {
 	mBlinkIcon = icon;
-	if ( mBlinkTimer->isActive() == false )
+	if ( mBlinkTimer->isActive() )
 	{
-		mIsBlinkIcon = true;
-		mIsBlinking = true;
-		mBlinkTimer->setSingleShot( false );
-		mBlinkTimer->start( 1000 );
-	}
-	else
-	{
 		mBlinkTimer->stop();
-		mIsBlinkIcon = true;
-		mIsBlinking = true;
-		mBlinkTimer->setSingleShot( false );
-		mBlinkTimer->start( 1000 );
 	}
+	mIsBlinkIcon = true;
+	mIsBlinking = true;
+	mBlinkTimer->setSingleShot( false );
+	mBlinkTimer->start( 1000 );
 }
 
 void KopeteSystemTray::startBlink()
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic