diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-10-27 22:24:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-27 22:24:43 +0200 |
commit | 3e26ad3a5f15f88cd9844f81504b7346dd8aa588 (patch) | |
tree | fc85002abd3f4dcd48b1125c1d437db4a26aba51 /scene | |
parent | 3c527dcbbdaa6a92b00c3ccd44c22347f1d3c5bc (diff) | |
parent | 96fdb030ecbc3aa93041c4cc752d9fc5336e0c67 (diff) |
Merge pull request #54320 from YeldhamDev/tabbar_close_last_fix
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/tab_bar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/tab_bar.cpp b/scene/gui/tab_bar.cpp index 78b58c773a..780614302c 100644 --- a/scene/gui/tab_bar.cpp +++ b/scene/gui/tab_bar.cpp @@ -222,7 +222,7 @@ void TabBar::gui_input(const Ref<InputEvent> &p_event) { } } - if (max_drawn_tab <= 0) { + if (tabs.is_empty()) { // Return early if there are no actual tabs to handle input for. return; } |