diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-06-27 11:22:13 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-06-27 11:22:13 -0300 |
commit | 88e28af5e360d826ee0e83944dff0003375e3daf (patch) | |
tree | ea6a696d16afda66c488f4866f44c39d2d2703e2 /scene/gui/control.h | |
parent | d41b7a66e9e01b55310d68e216139d6b6cc712f1 (diff) |
Add a small workaround to avoid modal tabs to be closed if they are spawned in the same frame, closes #3837
Diffstat (limited to 'scene/gui/control.h')
-rw-r--r-- | scene/gui/control.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/control.h b/scene/gui/control.h index 07a28de1ea..830ebd1620 100644 --- a/scene/gui/control.h +++ b/scene/gui/control.h @@ -132,6 +132,7 @@ private: ObjectID drag_owner; bool modal; bool modal_exclusive; + uint64_t modal_frame; //frame used to put something as modal Ref<Theme> theme; Control *theme_owner; String tooltip; @@ -249,6 +250,7 @@ public: Size2 get_custom_minimum_size() const; bool is_window_modal_on_top() const; + uint64_t get_modal_frame() const; //frame in which this was made modal Control *get_parent_control() const; |