summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-09-22 22:03:16 +0200
committerMikaël Capelle <capelle.mikael@gmail.com>2020-09-22 22:03:16 +0200
commit8980153a2cba833cf8817e15e814bc7b6c2d2230 (patch)
tree7270d08ddc7ef5f40337746ba013bbf045b54f16 /src/mainwindow.cpp
parentd9a8e67598b88d13b09d3e43c8f40418dea1f2a5 (diff)
Add 'reinstallation' parameter to onInstallationStart().
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 7759b057..24f00f48 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -2319,7 +2319,7 @@ void MainWindow::installMod(QString fileName)
if (fileName.isEmpty()) {
return;
} else {
- m_OrganizerCore.installMod(fileName, nullptr, QString());
+ m_OrganizerCore.installMod(fileName, false, nullptr, QString());
}
} catch (const std::exception &e) {
reportError(e.what());
@@ -2808,7 +2808,7 @@ void MainWindow::reinstallMod_clicked()
fullInstallationFile = m_OrganizerCore.downloadManager()->getOutputDirectory() + "/" + installationFile;
}
if (QFile::exists(fullInstallationFile)) {
- m_OrganizerCore.installMod(fullInstallationFile, modInfo, modInfo->name());
+ m_OrganizerCore.installMod(fullInstallationFile, true, modInfo, modInfo->name());
} else {
QMessageBox::information(this, tr("Failed"), tr("Installation file no longer exists"));
}