mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +00:00
Fix error when create new OpenCS addon
This commit is contained in:
parent
10a049b087
commit
7c3ef213ce
1 changed files with 7 additions and 3 deletions
|
@ -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 a new issue