|
|
|
@ -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;
|
|
|
|
|
}
|
|
|
|
|