Brace-initialise SettingValue

Clang didn't like it otherwise
pull/3235/head
AnyOldName3 9 months ago
parent a98a824f80
commit e735bf67e1

@ -714,7 +714,7 @@ void Launcher::DataFilesPage::addSubdirectories(bool append)
ui.directoryListWidget->addItem(rootPath);
auto row = ui.directoryListWidget->count() - 1;
auto* item = ui.directoryListWidget->item(row);
item->setData(Qt::UserRole, QVariant::fromValue(Config::SettingValue(rootPath)));
item->setData(Qt::UserRole, QVariant::fromValue(Config::SettingValue{ rootPath }));
mNewDataDirs.push_back(rootPath);
refreshDataFilesView();
return;
@ -746,7 +746,7 @@ void Launcher::DataFilesPage::addSubdirectories(bool append)
{
ui.directoryListWidget->insertItem(selectedRow, dir->text());
auto* item = ui.directoryListWidget->item(selectedRow);
item->setData(Qt::UserRole, QVariant::fromValue(Config::SettingValue(dir->text())));
item->setData(Qt::UserRole, QVariant::fromValue(Config::SettingValue{ dir->text() }));
mNewDataDirs.push_back(dir->text());
++selectedRow;
}

Loading…
Cancel
Save