From 54f70b6b506ee460e6ef2f986158fe5abe696ae6 Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Mon, 30 Dec 2019 23:42:39 +0100 Subject: [PATCH] Fix argument type in set_follow_focus() --- scene/gui/scroll_container.cpp | 2 +- scene/gui/scroll_container.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/gui/scroll_container.cpp b/scene/gui/scroll_container.cpp index c44cebb84a6..169e1db6637 100644 --- a/scene/gui/scroll_container.cpp +++ b/scene/gui/scroll_container.cpp @@ -514,7 +514,7 @@ bool ScrollContainer::is_following_focus() const { return follow_focus; } -void ScrollContainer::set_follow_focus(int p_follow) { +void ScrollContainer::set_follow_focus(bool p_follow) { follow_focus = p_follow; } diff --git a/scene/gui/scroll_container.h b/scene/gui/scroll_container.h index d4576372acd..959bc438709 100644 --- a/scene/gui/scroll_container.h +++ b/scene/gui/scroll_container.h @@ -95,7 +95,7 @@ public: void set_deadzone(int p_deadzone); bool is_following_focus() const; - void set_follow_focus(int p_follow); + void set_follow_focus(bool p_follow); HScrollBar *get_h_scrollbar(); VScrollBar *get_v_scrollbar();