BTabView: Allow SetEnabled to work even if there is no view.

Amends 0a2766d6b0.
This commit is contained in:
Augustin Cavalier
2026-05-21 12:58:35 -04:00
parent f5842905e3
commit 8c25999955
+3 -4
View File
@@ -205,13 +205,12 @@ BTab::Deselect()
void
BTab::SetEnabled(bool enable)
{
if (fView == NULL)
return;
if (fEnabled == enable)
return;
fEnabled = enable;
if (fView == NULL)
return;
fTabView->Invalidate();
}