Skip to content

Commit

Permalink
Remove remnant of delayed QWebView creation. Fixes tab restore again.
Browse files Browse the repository at this point in the history
  • Loading branch information
cg9999 authored and icefox committed Jan 4, 2010
1 parent bb7a6a6 commit 88e2dfb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/tabwidget.cpp
Expand Up @@ -107,7 +107,6 @@ TabWidget::TabWidget(QWidget *parent)
, m_nextTabAction(0)
, m_previousTabAction(0)
, m_recentlyClosedTabsMenu(0)
, m_swappedDelayedWidget(false)
, m_lineEditCompleter(0)
, m_locationBars(0)
, m_tabBar(new TabBar(this))
Expand Down Expand Up @@ -1027,11 +1026,6 @@ QByteArray TabWidget::saveState() const
QStringList tabs;
QList<QByteArray> tabsHistory;
for (int i = 0; i < count(); ++i) {
if (!m_swappedDelayedWidget) {
tabs.append(QString::null);
tabsHistory.append(QByteArray());
continue;
}
if (WebView *tab = webView(i)) {
tabs.append(QString::fromUtf8(tab->url().toEncoded()));
#if QT_VERSION >= 0x040600
Expand Down
1 change: 0 additions & 1 deletion src/tabwidget.h
Expand Up @@ -203,7 +203,6 @@ private slots:
QList<QUrl> m_recentlyClosedTabs;
QList<QByteArray> m_recentlyClosedTabsHistory;
QList<WebActionMapper*> m_actions;
bool m_swappedDelayedWidget;

QCompleter *m_lineEditCompleter;
QStackedWidget *m_locationBars;
Expand Down

0 comments on commit 88e2dfb

Please sign in to comment.