forked from qt-creator/qt-creator
Dont draw tab with no index
This commit is contained in:
@@ -96,7 +96,8 @@ 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
|
||||||
paintTab(&p, currentIndex());
|
if (currentIndex() != -1)
|
||||||
|
paintTab(&p, currentIndex());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle hover events for mouse fade ins
|
// Handle hover events for mouse fade ins
|
||||||
|
|||||||
Reference in New Issue
Block a user