소스 검색

Merge pull request #106836 from Riteo/return-is-missing

Wayland: Add missing return in selection logic
Thaddeus Crews 3 달 전
부모
커밋
7eabfab466
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      platform/linuxbsd/wayland/wayland_thread.cpp

+ 1 - 0
platform/linuxbsd/wayland/wayland_thread.cpp

@@ -4566,6 +4566,7 @@ void WaylandThread::selection_set_text(const String &p_text) {
 
 	if (ss->wl_data_device == nullptr) {
 		DEBUG_LOG_WAYLAND_THREAD("Couldn't set selection, seat doesn't have wl_data_device.");
+		return;
 	}
 
 	ss->selection_data = p_text.to_utf8_buffer();