From: Samuel Creshal Date: Sat, 13 Mar 2010 18:58:06 +0000 (+0100) Subject: Don't overwrite uri in _action_location_secondary_icon_released X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b10b311b0763cd59b587ede57880e7ff4c1c45cc;p=midori Don't overwrite uri in _action_location_secondary_icon_released --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 566b800d..94cf7ece 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -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