mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-29 16:49:27 +01:00
FancyTabBar: Check that tab data is valid
This commit is contained in:
parent
5fede2551e
commit
4c0220d10a
@ -52,7 +52,7 @@ FancyTabBar::FancyTabBar(QWidget *parent) :
|
||||
}
|
||||
|
||||
QString FancyTabBar::TabText(const int index) const {
|
||||
return tabText(index).isEmpty() ? ""_L1 : tabData(index).value<FancyTabData*>()->label();
|
||||
return tabText(index).isEmpty() || !tabData(index).isValid() ? ""_L1 : tabData(index).value<FancyTabData*>()->label();
|
||||
}
|
||||
|
||||
QSize FancyTabBar::sizeHint() const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user