From c17c484bf19429da9056bc3c975dc417341c3179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Ander=20Pe=C3=B1alba?= Date: Mon, 22 Nov 2010 19:09:32 +0100 Subject: Revert "Make the invariants of MainView explicit" This reverts commit bf94b5e71b1a7cedf2f69bb3cd61661bc21c24c3. This commit introduced a bug that stoped the new tab button from working. --- src/mainview.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mainview.cpp') diff --git a/src/mainview.cpp b/src/mainview.cpp index 1efcb0e4..3e5a3adb 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -63,12 +63,13 @@ const QString loadingGifPath = KStandardDirs::locate("appdata" , "pics/loading.m MainView::MainView(MainWindow *parent) : KTabWidget(parent) , m_widgetBar(new StackedUrlBar(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 -- cgit v1.2.1