|
|
@ -714,7 +714,7 @@ void Launcher::DataFilesPage::addSubdirectories(bool append)
|
|
|
|
ui.directoryListWidget->addItem(rootPath);
|
|
|
|
ui.directoryListWidget->addItem(rootPath);
|
|
|
|
auto row = ui.directoryListWidget->count() - 1;
|
|
|
|
auto row = ui.directoryListWidget->count() - 1;
|
|
|
|
auto* item = ui.directoryListWidget->item(row);
|
|
|
|
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);
|
|
|
|
mNewDataDirs.push_back(rootPath);
|
|
|
|
refreshDataFilesView();
|
|
|
|
refreshDataFilesView();
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -746,7 +746,7 @@ void Launcher::DataFilesPage::addSubdirectories(bool append)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ui.directoryListWidget->insertItem(selectedRow, dir->text());
|
|
|
|
ui.directoryListWidget->insertItem(selectedRow, dir->text());
|
|
|
|
auto* item = ui.directoryListWidget->item(selectedRow);
|
|
|
|
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());
|
|
|
|
mNewDataDirs.push_back(dir->text());
|
|
|
|
++selectedRow;
|
|
|
|
++selectedRow;
|
|
|
|
}
|
|
|
|
}
|
|
|
|