mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-04 02:41:19 +00:00
Merge branch 'bugfix/file-list-emptying-error' into 'master'
Fix error when create new OpenCS addon Closes #4757 See merge request OpenMW/openmw!50
This commit is contained in:
commit
e1d7a8415d
@ -474,9 +474,13 @@ void ContentSelectorModel::ContentModel::addFiles(const QString &path)
|
||||
|
||||
void ContentSelectorModel::ContentModel::clearFiles()
|
||||
{
|
||||
beginRemoveRows(QModelIndex(), 0, mFiles.count()-1);
|
||||
mFiles.clear();
|
||||
endRemoveRows();
|
||||
const int filesCount = mFiles.count();
|
||||
|
||||
if (filesCount > 0) {
|
||||
beginRemoveRows(QModelIndex(), 0, filesCount - 1);
|
||||
mFiles.clear();
|
||||
endRemoveRows();
|
||||
}
|
||||
}
|
||||
|
||||
QStringList ContentSelectorModel::ContentModel::gameFiles() const
|
||||
|
Loading…
Reference in New Issue
Block a user