fix: value may be empty in case non-explicit value name

This commit is contained in:
Корней Гедерт 2024-08-16 15:45:24 +04:00
parent 5765b4277b
commit 460b5288d4

View File

@ -186,10 +186,7 @@ bool writeListIntoRegistry(AbstractRegistrySource &source, QMap<std::string, QSt
{
// https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-r2-and-2008/cc772195(v=ws.10)
// valuePrefix represents the text string to be prepended to the incremented integer for registry subkey creation.
if (!begin.value().trimmed().isEmpty())
{
source.setValue(key, prefix + std::to_string(index), type, begin.value());
}
source.setValue(key, prefix + std::to_string(index), type, begin.value());
}
}