diff options
Diffstat (limited to 'src/gui/widgets/tabs')
-rw-r--r-- | src/gui/widgets/tabs/tab.cpp | 8 | ||||
-rw-r--r-- | src/gui/widgets/tabs/tab.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/widgets/tabs/tab.cpp b/src/gui/widgets/tabs/tab.cpp index 2555ca52b..39e966886 100644 --- a/src/gui/widgets/tabs/tab.cpp +++ b/src/gui/widgets/tabs/tab.cpp @@ -478,3 +478,11 @@ void Tab::mouseExited(MouseEvent& event A_UNUSED) { mHasMouse = false; } + +void Tab::final() +{ + for (int f = 0; f < TAB_COUNT; f ++) + { + tabImg[f] = nullptr; + } +} diff --git a/src/gui/widgets/tabs/tab.h b/src/gui/widgets/tabs/tab.h index d32cc176c..74b9f46be 100644 --- a/src/gui/widgets/tabs/tab.h +++ b/src/gui/widgets/tabs/tab.h @@ -202,6 +202,8 @@ class Tab notfinal : public BasicContainer, void setImage(Image *const image); + static void final(); + protected: friend class TabbedArea; |