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

List:       kde-commits
Subject:    KDE/kdeplasma-addons/applets/weather
From:       Shawn Starr <shawn.starr () rogers ! com>
Date:       2009-11-29 8:22:57
Message-ID: 1259482977.371109.17856.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1055942 by spstarr:

If the ion does not report current conditions, don't show the big icon. Reset the \
state to show if it does

 M  +3 -0      weatherapplet.cpp  


--- trunk/KDE/kdeplasma-addons/applets/weather/weatherapplet.cpp #1055941:1055942
@@ -380,8 +380,11 @@
     if (data["Condition Icon"].toString() == "N/A") {
         m_currentIcon->setIcon(KIcon("weather-not-available"));
         setPopupIcon("weather-not-available");
+    } else if (!isValidData(data["Condition Icon"]) || data["Condition \
Icon"].toString() == "N/U") { +        m_currentIcon->hide();
     } else {
         m_currentIcon->setIcon(KIcon(data["Condition Icon"].toString()));
+        m_currentIcon->show();
         setPopupIcon(data["Condition Icon"].toString());
     }
 


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

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