Dont draw tab with no index

This commit is contained in:
Jens Bache-Wiig
2010-02-16 15:58:02 +01:00
parent 61ccb1a585
commit 9e079d3a36

View File

@@ -96,7 +96,8 @@ void FancyTabBar::paintEvent(QPaintEvent *event)
paintTab(&p, i);
// paint active tab last, since it overlaps the neighbors
paintTab(&p, currentIndex());
if (currentIndex() != -1)
paintTab(&p, currentIndex());
}
// Handle hover events for mouse fade ins