Fixed the "Restore defaults" function.

This commit is contained in:
Pieter van der Kloet 2011-03-29 20:15:15 +02:00
parent 493018322d
commit 1d873c56a8

View file

@ -317,9 +317,9 @@ void DataFilesDialog::restoreDefaults()
dataFilesModel->checkedItems.clear();
QModelIndexList indexlist; // Make a list of default master files
indexlist.append(dataFilesModel->index("Morrowind.esm", 0));
indexlist.append(dataFilesModel->index("Tribunal.esm", 0));
indexlist.append(dataFilesModel->index("Bloodmoon.esm", 0));
indexlist.append(dataFilesModel->index("data/Morrowind.esm", 0));
indexlist.append(dataFilesModel->index("data/Tribunal.esm", 0));
indexlist.append(dataFilesModel->index("data/Bloodmoon.esm", 0));
foreach (const QModelIndex &index, indexlist) {
if (index.isValid()) {