From 041ed6b783f5e1e78463ef624cbf2610c22f09fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Mon, 5 Nov 2012 13:47:09 +0000 Subject: [PATCH] tabbar does not work, it's private; refs #167 --- src/browser.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/browser.hxx b/src/browser.hxx index cdd2350..69c472e 100644 --- a/src/browser.hxx +++ b/src/browser.hxx @@ -578,7 +578,7 @@ class Browser: public QMainWindow, protected Ui::Browser { SLOT(sslErrors(QNetworkReply*, const QList&)))); _tabs->setCurrentIndex(_tabs->addTab(browser, tr("New Tab"))); _tabs->setTabsClosable(_tabs->count()>1); - _tabs->tabBar()->setShown(_tabs->count()>1); + //_tabs->tabBar()->setShown(_tabs->count()>1); } void newSettings() { @@ -666,7 +666,7 @@ class Browser: public QMainWindow, protected Ui::Browser { void on__tabs_tabCloseRequested(int index) { _tabs->removeTab(index); _tabs->setTabsClosable(_tabs->count()>1); - _tabs->tabBar()->setShown(_tabs->count()>1); + //_tabs->tabBar()->setShown(_tabs->count()>1); } void on_actionPrintPreview_triggered() { @@ -908,7 +908,7 @@ class Browser: public QMainWindow, protected Ui::Browser { } for (int i(0); icount()>1; ++i) _tabs->removeTab(0); _tabs->setTabsClosable(_tabs->count()>1); - _tabs->tabBar()->setShown(_tabs->count()>1); + //_tabs->tabBar()->setShown(_tabs->count()>1); _tabs->setCurrentIndex(_settings()->value("Window/CurrentTab").toInt()); restoreGeometry(_settings()->value("Window/Geometry").toByteArray()); restoreState(_settings()->value("Window/WindowState").toByteArray());