summaryrefslogtreecommitdiffstats
path: root/logic
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-07-13 15:26:26 +0200
committerPetr Mrázek <peterix@gmail.com>2014-07-13 15:26:26 +0200
commitd8d6f5929b1a0104b31d381a45799849c6d82636 (patch)
treed3e1d24f1a130ebe4cf3e50393d7b724af58042d /logic
parent977cc1cfbb0b7ce3c2d69ca17dc4a6222d6794d2 (diff)
downloadMultiMC-d8d6f5929b1a0104b31d381a45799849c6d82636.tar
MultiMC-d8d6f5929b1a0104b31d381a45799849c6d82636.tar.gz
MultiMC-d8d6f5929b1a0104b31d381a45799849c6d82636.tar.lz
MultiMC-d8d6f5929b1a0104b31d381a45799849c6d82636.tar.xz
MultiMC-d8d6f5929b1a0104b31d381a45799849c6d82636.zip
Fix #361
Diffstat (limited to 'logic')
-rw-r--r--logic/Mod.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/logic/Mod.cpp b/logic/Mod.cpp
index 534fa796..a25890fc 100644
--- a/logic/Mod.cpp
+++ b/logic/Mod.cpp
@@ -271,7 +271,7 @@ bool Mod::replace(Mod &with)
bool success = false;
auto t = with.type();
- if (t == MOD_ZIPFILE || t == MOD_SINGLEFILE)
+ if (t == MOD_ZIPFILE || t == MOD_SINGLEFILE || t == MOD_LITEMOD)
{
QLOG_DEBUG() << "Copy: " << with.m_file.filePath() << " to " << m_file.filePath();
success = QFile::copy(with.m_file.filePath(), m_file.filePath());
@@ -309,7 +309,7 @@ bool Mod::destroy()
}
return false;
}
- else if (m_type == MOD_SINGLEFILE || m_type == MOD_ZIPFILE)
+ else if (m_type == MOD_SINGLEFILE || m_type == MOD_ZIPFILE || m_type == MOD_LITEMOD)
{
QFile f(m_file.filePath());
if (f.remove())