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

List:       kde-commits
Subject:    KDE/kdepim/mobile/lib
From:       Volker Krause <vkrause () kde ! org>
Date:       2010-12-07 10:43:02
Message-ID: 20101207104302.29931AC8A5 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1204443 by vkrause:

Fix running state overwriting offline, showing the wrong status when the
device is offline but one of the resource failed to notice it yet.


 M  +5 -3      AgentStatusIndicator.qml  


--- trunk/KDE/kdepim/mobile/lib/AgentStatusIndicator.qml #1204442:1204443
@@ -29,18 +29,20 @@
 
   function iconFromStatus( status )
   {
+    if ( !(status & KPIM.AgentStatusMonitor.Online) ) {
+      return "images/status/offline.png";
+    } else {
     if ( (status & KPIM.AgentStatusMonitor.Sending) && (status & KPIM.AgentStatusMonitor.Receiving) ) {
       return "images/status/sending-receiving.png";
     } else if ( status & KPIM.AgentStatusMonitor.Receiving ) {
       return "images/status/receiving.png";
     } else if ( status & KPIM.AgentStatusMonitor.Sending ) {
       return "images/status/sending.png";
-    } else if ( status & KPIM.AgentStatusMonitor.Online ) {
+      } else {
       return "images/status/online.png"
-    } else {
-      return "images/status/offline.png";
     }
   }
+  }
 
   QML.Image {
     id: icon
[prev in list] [next in list] [prev in thread] [next in thread] 

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