]> spindle.queued.net Git - midori/commitdiff
Don't overwrite uri in _action_location_secondary_icon_released
authorSamuel Creshal <creshal@arcor.de>
Sat, 13 Mar 2010 18:58:06 +0000 (19:58 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sat, 13 Mar 2010 18:58:06 +0000 (19:58 +0100)
midori/midori-browser.c

index 566b800d60202305f9543cf2d370ee48be6ccadc..94cf7eceb6cef4b3841d6eee90919dc987e10669 100644 (file)
@@ -3969,9 +3969,10 @@ _action_location_secondary_icon_released (GtkAction*     action,
     if ((view = midori_browser_get_current_tab (browser)))
     {
         const gchar* uri = midori_view_get_display_uri (MIDORI_VIEW (view));
+        const gchar* feed;
         if (gtk_window_get_focus (GTK_WINDOW (browser)) == widget)
             _action_location_submit_uri (action, uri, FALSE, browser);
-        else if ((uri = g_object_get_data (G_OBJECT (view), "news-feeds")))
+        else if ((feed = g_object_get_data (G_OBJECT (view), "news-feeds")))
         {
             KatzeArray* news_feeds;
             KatzeItem* item;
@@ -4014,7 +4015,7 @@ _action_location_secondary_icon_released (GtkAction*     action,
                                     KATZE_MENU_POSITION_RIGHT);
             }
             else
-                midori_browser_subscribe_to_news_feed (browser, uri);
+                midori_browser_subscribe_to_news_feed (browser, feed);
             g_object_unref (news_feeds);
         }
         else