Don't overwrite uri in _action_location_secondary_icon_released
This commit is contained in:
parent
25bbea02e2
commit
b10b311b07
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue