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:
parent
2a6a26c0d0
commit
a390dde818
@ -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);
|
||||
|
||||
|
@ -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"));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user