[maemo-commits] [maemo-commits] r13433 - in projects/haf/trunk/hildon-home-webshortcut: . plugin

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Aug 28 15:03:00 EEST 2007
Author: jobi
Date: 2007-08-28 15:02:56 +0300 (Tue, 28 Aug 2007)
New Revision: 13433

Modified:
   projects/haf/trunk/hildon-home-webshortcut/ChangeLog
   projects/haf/trunk/hildon-home-webshortcut/plugin/hildon-home-webshortcut.c
Log:

2007-08-28  Johan Bilien  <johan.bilien at nokia.com>

	* plugin/hildon-home-webshortcut.c:
	- if no action is returned from hildon-uri, display the
	invalid URI banner.
	Fixes: NB#48685



Modified: projects/haf/trunk/hildon-home-webshortcut/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-home-webshortcut/ChangeLog	2007-08-28 12:01:22 UTC (rev 13432)
+++ projects/haf/trunk/hildon-home-webshortcut/ChangeLog	2007-08-28 12:02:56 UTC (rev 13433)
@@ -1,3 +1,10 @@
+2007-08-28  Johan Bilien  <johan.bilien at nokia.com>
+
+	* plugin/hildon-home-webshortcut.c:
+	- if no action is returned from hildon-uri, display the
+	invalid URI banner.
+	Fixes: NB#48685
+
 2007-08-15  Lucas Rocha  <lucas.rocha at nokia.com>
 
 	* plugin/hhws-background.c: more safety tests in case it's not

Modified: projects/haf/trunk/hildon-home-webshortcut/plugin/hildon-home-webshortcut.c
===================================================================
--- projects/haf/trunk/hildon-home-webshortcut/plugin/hildon-home-webshortcut.c	2007-08-28 12:01:22 UTC (rev 13432)
+++ projects/haf/trunk/hildon-home-webshortcut/plugin/hildon-home-webshortcut.c	2007-08-28 12:02:56 UTC (rev 13433)
@@ -350,10 +350,9 @@
                                            HILDON_URI_ACTION_NEUTRAL,
                                            &error);
 
-  if (error)
+  if (error || !actions)
   {
     hhws_show_information_note (hhws, HHWS_INVALID_URL);
-    g_error_free (error);
   }
   else
   {
@@ -364,6 +363,9 @@
   if (actions)
     hildon_uri_free_actions (actions);
 
+  if (error)
+    g_error_free (error);
+
 }
 
 static void


More information about the maemo-commits mailing list