mirror of
https://github.com/august-alt/gpui.git
synced 2025-03-14 12:58:39 +03:00
fix: value may be empty in case non-explicit value name
This commit is contained in:
parent
5765b4277b
commit
460b5288d4
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user