diff options
author | robotbrain <robotbrain@robotbrain.info> | 2015-01-03 12:50:03 -0500 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-01-06 21:23:02 +0100 |
commit | acb3346409cb1b90fbb9abc929fd8a80038b447c (patch) | |
tree | 04e5f78aba80bbdc21492f9809f1091b750240f0 /logic | |
parent | 85756d0e78f53b2c216d153f713ea17db3db3e8f (diff) | |
download | MultiMC-acb3346409cb1b90fbb9abc929fd8a80038b447c.tar MultiMC-acb3346409cb1b90fbb9abc929fd8a80038b447c.tar.gz MultiMC-acb3346409cb1b90fbb9abc929fd8a80038b447c.tar.lz MultiMC-acb3346409cb1b90fbb9abc929fd8a80038b447c.tar.xz MultiMC-acb3346409cb1b90fbb9abc929fd8a80038b447c.zip |
NOISSUE Update and sort modlist after adding mods
Diffstat (limited to 'logic')
-rw-r--r-- | logic/ModList.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/logic/ModList.cpp b/logic/ModList.cpp index 743227d3..a82386ba 100644 --- a/logic/ModList.cpp +++ b/logic/ModList.cpp @@ -65,7 +65,7 @@ void ModList::stopWatching() void ModList::internalSort(QList<Mod> &what) { - auto predicate = [](const Mod & left, const Mod & right) + auto predicate = [](const Mod &left, const Mod &right) { if (left.name() == right.name()) { @@ -259,7 +259,7 @@ bool ModList::installMod(const QFileInfo &filename, int index) auto right = this->index(index, columnCount(QModelIndex()) - 1); emit dataChanged(left, right); saveListFile(); - emit changed(); + update(); return true; } return false; @@ -278,7 +278,7 @@ bool ModList::installMod(const QFileInfo &filename, int index) mods.insert(index, m); endInsertRows(); saveListFile(); - emit changed(); + update(); return true; } else if (type == Mod::MOD_FOLDER) @@ -293,7 +293,7 @@ bool ModList::installMod(const QFileInfo &filename, int index) mods.insert(index, m); endInsertRows(); saveListFile(); - emit changed(); + update(); return true; } return false; |