From 2fe3e35557dc5ac961dc40da9b5c635d2483a196 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 19 Jan 2011 22:44:11 +0100 Subject: This code fixes new tab button appearing on new window when tabbar is set hidden (Always show tab bar = false) This fix comes from a Felix Rohrbach idea. Thanks :) --- src/mainview.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mainview.cpp b/src/mainview.cpp index cbe862fb..699103a0 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -140,7 +140,9 @@ void MainView::updateTabButtonPosition() if (ButtonInCorner) { setCornerWidget(0); - m_addTabButton->show(); + // new window problem + if(count()>1) + m_addTabButton->show(); ButtonInCorner = false; } -- cgit v1.2.1