1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00

Fixed importing configurations of existing installations

This commit is contained in:
pvdk 2014-05-29 21:17:49 +02:00
parent 2a6a26c0d0
commit a390dde818
2 changed files with 8 additions and 2 deletions

View File

@ -257,7 +257,7 @@ void Launcher::MainDialog::changePage(QListWidgetItem *current, QListWidgetItem
current = previous;
int currentIndex = iconWidget->row(current);
int previousIndex = iconWidget->row(previous);
// int previousIndex = iconWidget->row(previous);
pagesWidget->setCurrentIndex(currentIndex);

View File

@ -271,7 +271,13 @@ void Wizard::MainWizard::runSettingsImporter()
// Now the paths
arguments.append(QLatin1String("--ini"));
arguments.append(path + QDir::separator() + QLatin1String("Morrowind.ini"));
if (field(QLatin1String("installation.new")).toBool() == true) {
arguments.append(path + QDir::separator() + QLatin1String("Morrowind.ini"));
} else {
arguments.append(mInstallations[path].iniPath);
}
arguments.append(QLatin1String("--cfg"));
arguments.append(userPath + QLatin1String("openmw.cfg"));