diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-08-05 15:36:18 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-12-10 02:48:04 +0100 |
commit | 94c00524d2e57bb0d83314340484a6177ace4733 (patch) | |
tree | d51e75571eca034c0ee17009d831c16e41f68da7 /src/tabwindow/tabwindow.cpp | |
parent | Ensure Rekonq (tools) menu does not crash by using a Q(Weak)Pointer (diff) | |
download | rekonq-94c00524d2e57bb0d83314340484a6177ace4733.tar.xz |
Clean up WebWindow ctor
Diffstat (limited to 'src/tabwindow/tabwindow.cpp')
-rw-r--r-- | src/tabwindow/tabwindow.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/tabwindow/tabwindow.cpp b/src/tabwindow/tabwindow.cpp index 3e479bdf..765d0774 100644 --- a/src/tabwindow/tabwindow.cpp +++ b/src/tabwindow/tabwindow.cpp @@ -147,11 +147,7 @@ WebWindow *TabWindow::webWindow(int index) const WebWindow *TabWindow::prepareNewTab(WebPage *page) { - WebWindow *tab; - if (page) - tab = new WebWindow(page, this); - else - tab = new WebWindow(this); + WebWindow *tab = new WebWindow(this, page); connect(tab, SIGNAL(titleChanged(QString)), this, SLOT(tabTitleChanged(QString))); |