forked from mirror/openmw-tes3mp
Removed unneeded parameter from ContentModel::setContentList()
This commit is contained in:
parent
84762c4eb8
commit
6dc202cba3
3 changed files with 4 additions and 4 deletions
|
@ -536,13 +536,13 @@ bool ContentSelectorModel::ContentModel::isLoadOrderError(const EsmFile *file) c
|
||||||
return mPluginsWithLoadOrderError.contains(file->filePath());
|
return mPluginsWithLoadOrderError.contains(file->filePath());
|
||||||
}
|
}
|
||||||
|
|
||||||
void ContentSelectorModel::ContentModel::setContentList(const QStringList &fileList, bool isChecked)
|
void ContentSelectorModel::ContentModel::setContentList(const QStringList &fileList)
|
||||||
{
|
{
|
||||||
mPluginsWithLoadOrderError.clear();
|
mPluginsWithLoadOrderError.clear();
|
||||||
int previousPosition = -1;
|
int previousPosition = -1;
|
||||||
foreach (const QString &filepath, fileList)
|
foreach (const QString &filepath, fileList)
|
||||||
{
|
{
|
||||||
if (setCheckState(filepath, isChecked))
|
if (setCheckState(filepath, true))
|
||||||
{
|
{
|
||||||
// as necessary, move plug-ins in visible list to match sequence of supplied filelist
|
// as necessary, move plug-ins in visible list to match sequence of supplied filelist
|
||||||
const EsmFile* file = item(filepath);
|
const EsmFile* file = item(filepath);
|
||||||
|
|
|
@ -51,7 +51,7 @@ namespace ContentSelectorModel
|
||||||
bool isEnabled (QModelIndex index) const;
|
bool isEnabled (QModelIndex index) const;
|
||||||
bool isChecked(const QString &filepath) const;
|
bool isChecked(const QString &filepath) const;
|
||||||
bool setCheckState(const QString &filepath, bool isChecked);
|
bool setCheckState(const QString &filepath, bool isChecked);
|
||||||
void setContentList(const QStringList &fileList, bool isChecked);
|
void setContentList(const QStringList &fileList);
|
||||||
ContentFileList checkedItems() const;
|
ContentFileList checkedItems() const;
|
||||||
void uncheckAll();
|
void uncheckAll();
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,7 @@ void ContentSelectorView::ContentSelector::setContentList(const QStringList &lis
|
||||||
slotCurrentGameFileIndexChanged (ui.gameFileView->currentIndex());
|
slotCurrentGameFileIndexChanged (ui.gameFileView->currentIndex());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
mContentModel->setContentList(list, true);
|
mContentModel->setContentList(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
ContentSelectorModel::ContentFileList
|
ContentSelectorModel::ContentFileList
|
||||||
|
|
Loading…
Reference in a new issue