summaryrefslogtreecommitdiff
path: root/desktop/local_history.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-02-10 14:08:45 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2014-02-10 14:08:45 +0000
commitaf014bce99d4990f1a0cbb1a779127de0f716a90 (patch)
treee013fd671af221d241c23087fc770faab3a64628 /desktop/local_history.c
parent9720c024832c96d917de933b95c87cf2e4f867bf (diff)
downloadnetsurf-af014bce99d4990f1a0cbb1a779127de0f716a90.tar.gz
netsurf-af014bce99d4990f1a0cbb1a779127de0f716a90.tar.bz2
Allow tab creation without history clone. Changes browser_window_create and browser_window_navigate flags.
Diffstat (limited to 'desktop/local_history.c')
-rw-r--r--desktop/local_history.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/desktop/local_history.c b/desktop/local_history.c
index b26f266d6..569fa44e4 100644
--- a/desktop/local_history.c
+++ b/desktop/local_history.c
@@ -150,6 +150,8 @@ struct history *history_clone(struct history *history,
return 0;
}
+ new_history->bw = bw;
+
return new_history;
}
@@ -455,13 +457,13 @@ void history_go(struct history *history, struct history_entry *entry,
current = history->current;
history->current = entry;
- browser_window_create(BROWSER_WINDOW_VERIFIABLE,
+ browser_window_create(BW_CREATE_CLONE,
url, NULL, history->bw, NULL);
history->current = current;
} else {
history->current = entry;
browser_window_navigate(history->bw, url, NULL,
- BROWSER_WINDOW_VERIFIABLE, NULL, NULL, NULL);
+ BW_NAVIGATE_VERIFIABLE, NULL, NULL, NULL);
}
nsurl_unref(url);