summaryrefslogtreecommitdiff
path: root/noncore/todayplugins/weather
Side-by-side diff
Diffstat (limited to 'noncore/todayplugins/weather') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/todayplugins/weather/weatherpluginimpl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/todayplugins/weather/weatherpluginimpl.cpp b/noncore/todayplugins/weather/weatherpluginimpl.cpp
index 1a7c27b..fd32a44 100644
--- a/noncore/todayplugins/weather/weatherpluginimpl.cpp
+++ b/noncore/todayplugins/weather/weatherpluginimpl.cpp
@@ -51,7 +51,8 @@ QRESULT WeatherPluginImpl::queryInterface( const QUuid &uuid, QUnknownInterface
if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) )
{
*iface = this, (*iface)->addRef();
- }
+ }else
+ return QS_FALSE;
return QS_OK;
}