forked from qt-creator/qt-creator
Android: Fix FilePath usage (string vs. userInput/Output)
Important on Windows Change-Id: I0a3041e28ad60f28544ecdab2f6153b7931939f2 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
@@ -694,7 +694,7 @@ bool SdkManagerOutputParser::parseAbstractData(SdkManagerOutputParser::GenericPa
|
|||||||
for (const auto &key: qAsConst(keys)) {
|
for (const auto &key: qAsConst(keys)) {
|
||||||
if (valueForKey(key, line, &value)) {
|
if (valueForKey(key, line, &value)) {
|
||||||
if (key == installLocationKey)
|
if (key == installLocationKey)
|
||||||
output.installedLocation = Utils::FilePath::fromString(value);
|
output.installedLocation = Utils::FilePath::fromUserInput(value);
|
||||||
else if (key == revisionKey)
|
else if (key == revisionKey)
|
||||||
output.revision = QVersionNumber::fromString(value);
|
output.revision = QVersionNumber::fromString(value);
|
||||||
else if (key == descriptionKey)
|
else if (key == descriptionKey)
|
||||||
|
@@ -241,7 +241,7 @@ void AndroidSettingsWidget::updateNdkList()
|
|||||||
const auto installedPkgs = m_sdkManager.installedNdkPackages();
|
const auto installedPkgs = m_sdkManager.installedNdkPackages();
|
||||||
for (const Ndk *ndk : installedPkgs) {
|
for (const Ndk *ndk : installedPkgs) {
|
||||||
m_ui.ndkListWidget->addItem(new QListWidgetItem(Icons::LOCKED.icon(),
|
m_ui.ndkListWidget->addItem(new QListWidgetItem(Icons::LOCKED.icon(),
|
||||||
ndk->installedLocation().toString()));
|
ndk->installedLocation().toUserOutput()));
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto customNdks = m_androidConfig.getCustomNdkList();
|
const auto customNdks = m_androidConfig.getCustomNdkList();
|
||||||
|
Reference in New Issue
Block a user