diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-16 20:58:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-16 20:58:55 +0100 |
commit | 009254d87c1de573d2abeb273676f22d0bdfc67f (patch) | |
tree | 6123649c85c0a6d513224901de8a25bc068c4901 /editor/property_editor.cpp | |
parent | 5d5f80b5295479ca4e12989394b3a2af8819a1ee (diff) | |
parent | 6553f5c242865f9aadbe2fdab6db6876c44ac472 (diff) |
Merge pull request #58187 from jakobbouchard/notification-switch-chunk-c
Convert _notification methods to switch - Chunk C
Diffstat (limited to 'editor/property_editor.cpp')
-rw-r--r-- | editor/property_editor.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp index 40f7b86ffc..cd65ee7ae6 100644 --- a/editor/property_editor.cpp +++ b/editor/property_editor.cpp @@ -94,8 +94,10 @@ Ref<Resource> EditorResourceConversionPlugin::convert(const Ref<Resource> &p_res } void CustomPropertyEditor::_notification(int p_what) { - if (p_what == NOTIFICATION_WM_CLOSE_REQUEST) { - hide(); + switch (p_what) { + case NOTIFICATION_WM_CLOSE_REQUEST: { + hide(); + } break; } } |