diff --git a/scene/gui/tabs.cpp b/scene/gui/tabs.cpp index afef675bc18..391ff18c0ce 100644 --- a/scene/gui/tabs.cpp +++ b/scene/gui/tabs.cpp @@ -182,7 +182,7 @@ void Tabs::_gui_input(const Ref &p_event) { } } - if (max_drawn_tab <= 0) { + if (tabs.empty()) { // Return early if there are no actual tabs to handle input for. return; }