NOISSUE Update and sort modlist after adding mods
This commit is contained in:
parent
85756d0e78
commit
acb3346409
@ -259,7 +259,7 @@ bool ModList::installMod(const QFileInfo &filename, int index)
|
|||||||
auto right = this->index(index, columnCount(QModelIndex()) - 1);
|
auto right = this->index(index, columnCount(QModelIndex()) - 1);
|
||||||
emit dataChanged(left, right);
|
emit dataChanged(left, right);
|
||||||
saveListFile();
|
saveListFile();
|
||||||
emit changed();
|
update();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@ -278,7 +278,7 @@ bool ModList::installMod(const QFileInfo &filename, int index)
|
|||||||
mods.insert(index, m);
|
mods.insert(index, m);
|
||||||
endInsertRows();
|
endInsertRows();
|
||||||
saveListFile();
|
saveListFile();
|
||||||
emit changed();
|
update();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (type == Mod::MOD_FOLDER)
|
else if (type == Mod::MOD_FOLDER)
|
||||||
@ -293,7 +293,7 @@ bool ModList::installMod(const QFileInfo &filename, int index)
|
|||||||
mods.insert(index, m);
|
mods.insert(index, m);
|
||||||
endInsertRows();
|
endInsertRows();
|
||||||
saveListFile();
|
saveListFile();
|
||||||
emit changed();
|
update();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user