summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 98d8b0a6..bad6999b 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -65,12 +65,13 @@
MainView::MainView(MainWindow *parent)
: KTabWidget(parent)
, m_urlBar(new UrlBar(this))
- , m_addTabButton(new QToolButton(this))
+ , m_addTabButton(0)
, m_currentTabIndex(0)
, m_parentWindow(parent)
{
// setting tabbar
TabBar *tabBar = new TabBar(this);
+ m_addTabButton = new QToolButton(this);
setTabBar(tabBar);
// set mouse tracking for tab previews