Make Viewport::gui_get_focus_owner const

This commit is contained in:
Aaron Franke
2023-06-02 09:57:10 -05:00
parent d3e4db4a7b
commit 8b42297d7c
5 changed files with 12 additions and 4 deletions

View File

@@ -202,7 +202,7 @@ void SpinBox::_line_edit_focus_enter() {
void SpinBox::_line_edit_focus_exit() {
// Discontinue because the focus_exit was caused by left-clicking the arrows.
Viewport *viewport = get_viewport();
const Viewport *viewport = get_viewport();
if (!viewport || viewport->gui_get_focus_owner() == get_line_edit()) {
return;
}