forked from qt-creator/qt-creator
Dont draw tab with no index
This commit is contained in:
@@ -96,6 +96,7 @@ void FancyTabBar::paintEvent(QPaintEvent *event)
|
||||
paintTab(&p, i);
|
||||
|
||||
// paint active tab last, since it overlaps the neighbors
|
||||
if (currentIndex() != -1)
|
||||
paintTab(&p, currentIndex());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user