From 8a83079d858984c4075c9f1a5ecff2d0a83b7e5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20E=2E=20Narv=C3=A1ez?= Date: Sat, 28 Jan 2012 08:06:14 -0500 Subject: Always Create New Tabs Commit 5b07ae28 introduced a bug here because no tab is now created by default in the restoring window BUG: 292586 --- src/sessionmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sessionmanager.cpp b/src/sessionmanager.cpp index 6e4ed7dc..0ef0b827 100644 --- a/src/sessionmanager.cpp +++ b/src/sessionmanager.cpp @@ -287,7 +287,7 @@ bool SessionManager::restoreMainWindow(MainWindow* window) if (tab.hasAttribute("currentTab")) currentTab = tabNo; - WebView *view = (tabNo == 0) ? mv->webTab(0)->view() : mv->newWebTab()->view(); + WebView *view = mv->newWebTab()->view(); QDomCDATASection historySection = tab.firstChild().toCDATASection(); QByteArray history = QByteArray::fromBase64(historySection.data().toAscii()); -- cgit v1.2.1