From 7bb017677dcf99a4e5001d7328de6f503998e354 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 8 Apr 2024 17:05:46 +0200 Subject: [PATCH] ProjectExplorer: Fix device display name value acceptor Fixes: QTCREATORBUG-30622 Change-Id: Idac04c9823f5e1136102be3a2ad810a6f782c0fd Reviewed-by: Reviewed-by: Marcus Tillmanns --- src/plugins/projectexplorer/devicesupport/idevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/projectexplorer/devicesupport/idevice.cpp b/src/plugins/projectexplorer/devicesupport/idevice.cpp index 0fcdae1c918..7c621775b15 100644 --- a/src/plugins/projectexplorer/devicesupport/idevice.cpp +++ b/src/plugins/projectexplorer/devicesupport/idevice.cpp @@ -194,10 +194,10 @@ DeviceSettings::DeviceSettings() displayName.setValueAcceptor( [validateDisplayName](const QString &old, const QString &newValue) -> std::optional { - if (validateDisplayName(old, newValue)) + if (!validateDisplayName(old, newValue)) return std::nullopt; - return old; + return newValue; }); }