mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
fix: trim whitespace from environment variables
Signed-off-by: Andrey Kurlin <superkurlin2013@yandex.ru>
This commit is contained in:
parent
f654ce8212
commit
0175653881
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ QMap<QString, QVariant> EnvironmentVariables::value() const
|
||||||
QMap<QString, QVariant> result;
|
QMap<QString, QVariant> result;
|
||||||
QTreeWidgetItem* item = ui->list->topLevelItem(0);
|
QTreeWidgetItem* item = ui->list->topLevelItem(0);
|
||||||
for (int i = 1; item != nullptr; item = ui->list->topLevelItem(i++))
|
for (int i = 1; item != nullptr; item = ui->list->topLevelItem(i++))
|
||||||
result[item->text(0)] = item->text(1);
|
result[item->text(0).trimmed()] = item->text(1).trimmed();
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue