summaryrefslogtreecommitdiff
path: root/src/tabwindow/tabbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabwindow/tabbar.cpp')
-rw-r--r--src/tabwindow/tabbar.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tabwindow/tabbar.cpp b/src/tabwindow/tabbar.cpp
index 18393cf9..a1e69745 100644
--- a/src/tabwindow/tabbar.cpp
+++ b/src/tabwindow/tabbar.cpp
@@ -102,6 +102,11 @@ QSize TabBar::tabSizeHint(int index) const
int h = size().height();
+ // this because it may happen sometimes (eg: exiting fullscreen)
+ // that tabbar height is set to ZERO. And this is NOT good...
+ if (h == 0)
+ h = 30;
+
QSize ts = QSize(w, h);
return ts;
}