summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/installationmanager.cpp4
-rw-r--r--src/installationmanager.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/installationmanager.cpp b/src/installationmanager.cpp
index 07c015ea..e6e660e6 100644
--- a/src/installationmanager.cpp
+++ b/src/installationmanager.cpp
@@ -440,7 +440,9 @@ bool InstallationManager::testOverwrite(GuessedValue<QString> &modName, bool *me
return false;
}
}
- *merge = (overwriteDialog.action() == QueryOverwriteDialog::ACT_MERGE);
+ if (merge != nullptr) {
+ *merge = (overwriteDialog.action() == QueryOverwriteDialog::ACT_MERGE);
+ }
if (overwriteDialog.action() == QueryOverwriteDialog::ACT_RENAME) {
bool ok = false;
QString name = QInputDialog::getText(m_ParentWidget, tr("Mod Name"), tr("Name"),
diff --git a/src/installationmanager.h b/src/installationmanager.h
index b25ea957..3478fecf 100644
--- a/src/installationmanager.h
+++ b/src/installationmanager.h
@@ -138,6 +138,7 @@ public:
/**
* @brief test if the specified mod name is free. If not, query the user how to proceed
* @param modName current possible names for the mod
+ * @param merge if this value is not null, the value will be set to whether the use chose to merge or replace
* @return true if we can proceed with the installation, false if the user canceled or in case of an unrecoverable error
*/
virtual bool testOverwrite(MOBase::GuessedValue<QString> &modName, bool *merge = NULL) const;