From 65889f809b22303fac23f90c9ce716cd85f03e84 Mon Sep 17 00:00:00 2001 From: Serhii Hadzhilov Date: Thu, 15 Apr 2021 18:25:36 +0300 Subject: [PATCH] SYNERGY-799 Fixed issue with screen name validation --- src/gui/src/validators/ScreenDuplicationsValidator.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/src/validators/ScreenDuplicationsValidator.cpp b/src/gui/src/validators/ScreenDuplicationsValidator.cpp index 8a6d245f7f..0af01f3526 100644 --- a/src/gui/src/validators/ScreenDuplicationsValidator.cpp +++ b/src/gui/src/validators/ScreenDuplicationsValidator.cpp @@ -36,9 +36,8 @@ bool ScreenDuplicationsValidator::validate(const QString& input) const { for (const auto& screen : (*m_pScreenList)) { - if (!screen.isNull() && - input != m_defaultName && - input == screen.name()) + if (!screen.isNull() && !screen.isServer() && + input != m_defaultName && input == screen.name()) { result = false; break;