aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks
diff options
context:
space:
mode:
Diffstat (limited to 'src/bookmarks')
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index 2556fdd99..4fd221246 100644
--- a/src/bookmarks/ephy-bookmarks-editor.c
+++ b/src/bookmarks/ephy-bookmarks-editor.c
@@ -751,18 +751,9 @@ ephy_bookmarks_editor_node_activated_cb (GtkWidget *view,
g_return_if_fail (location != NULL);
window = EPHY_WINDOW (get_target_window (editor));
- if (window != NULL)
- {
- ephy_window_load_url (EPHY_WINDOW (window), location);
- gtk_window_present (GTK_WINDOW (window));
- }
- else
- {
- /* We have to create a browser window */
- ephy_shell_new_tab (ephy_shell, NULL, NULL, location,
- EPHY_NEW_TAB_OPEN_PAGE |
- EPHY_NEW_TAB_IN_NEW_WINDOW);
- }
+
+ ephy_shell_new_tab (ephy_shell, window, NULL, location,
+ EPHY_NEW_TAB_OPEN_PAGE);
}
static void