From f508475916e40add3e44be6b635f2e5179b996be Mon Sep 17 00:00:00 2001 From: nowrep Date: Wed, 13 Mar 2013 11:55:22 +0100 Subject: [PATCH] [Fix] Fixed duplicating current url in history when restoring session. --- CHANGELOG | 2 ++ src/lib/webview/webtab.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index f8401150b..c7ff740c5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,7 @@ Version 1.4.1 * not yet released + * fixed showing empty back/forward history menu upon restoring session + * fixed duplicating current url in history when restoring session * fixed instantly showing popup when clicking on back/forward button Version 1.4.0 diff --git a/src/lib/webview/webtab.cpp b/src/lib/webview/webtab.cpp index 5ba3646e1..abbcbfca9 100644 --- a/src/lib/webview/webtab.cpp +++ b/src/lib/webview/webtab.cpp @@ -250,10 +250,10 @@ void WebTab::restoreTab(const WebTab::SavedTab &tab) void WebTab::p_restoreTab(const QUrl &url, const QByteArray &history) { + m_view->load(url); + QDataStream historyStream(history); historyStream >> *m_view->history(); - - m_view->load(url); } void WebTab::p_restoreTab(const WebTab::SavedTab &tab)