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,6 +96,7 @@ void FancyTabBar::paintEvent(QPaintEvent *event)
paintTab(&p, i); paintTab(&p, i);
// paint active tab last, since it overlaps the neighbors // paint active tab last, since it overlaps the neighbors
if (currentIndex() != -1)
paintTab(&p, currentIndex()); paintTab(&p, currentIndex());
} }