diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2019-02-22 03:45:54 -0600 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2019-02-22 03:45:54 -0600 |
| commit | 0798e102ba360260ec281a0aeee1938d212d8428 (patch) | |
| tree | 505c8e2430a565c90e3c39e7e73f37c0e3b4961d /src/mainwindow.cpp | |
| parent | 01203bb467c94888725afaf6404e46ea0540d3fa (diff) | |
Force an update check after installing a mod
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index a946bba4..282c9674 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2347,6 +2347,12 @@ void MainWindow::modInstalled(const QString &modName) if (posList.count() == 1) { ui->modList->scrollTo(posList.at(0)); } + + // force an update to happen + std::multimap<QString, int> IDs; + ModInfo::Ptr info = ModInfo::getByIndex(ModInfo::getIndex(modName)); + IDs.insert(std::make_pair<QString, int>(info->getGameName(), info->getNexusID())); + modUpdateCheck(IDs); } void MainWindow::procError(QProcess::ProcessError error) |
