From 95a014a601009212dff50c631c6baa378154ecdc Mon Sep 17 00:00:00 2001 From: dijunkun Date: Fri, 14 Jun 2024 17:01:58 +0800 Subject: [PATCH] Not allow clicking connect button if remote id is empty --- src/main_window/main_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main_window/main_window.cpp b/src/main_window/main_window.cpp index 4f008ad..ee60bdb 100644 --- a/src/main_window/main_window.cpp +++ b/src/main_window/main_window.cpp @@ -445,7 +445,7 @@ int MainWindow::Run() { if ("SignalConnected" == signal_status_str_) { if (connect_button_label_ == localization::connect[localization_language_index_] && - !connection_established_) { + !connection_established_ && strlen(remote_id_)) { if (remote_id_ == local_id_ && !peer_reserved_) { peer_reserved_ = CreatePeer(¶ms_); if (peer_reserved_) {