SYNERGY-799 Fixed issue with screen name validation

This commit is contained in:
Serhii Hadzhilov 2021-04-15 18:25:36 +03:00
parent 95d9ce36dc
commit 65889f809b

View file

@ -36,9 +36,8 @@ bool ScreenDuplicationsValidator::validate(const QString& input) const
{ {
for (const auto& screen : (*m_pScreenList)) for (const auto& screen : (*m_pScreenList))
{ {
if (!screen.isNull() && if (!screen.isNull() && !screen.isServer() &&
input != m_defaultName && input != m_defaultName && input == screen.name())
input == screen.name())
{ {
result = false; result = false;
break; break;