This commit is contained in:
Petr Mrázek 2014-07-13 15:26:26 +02:00
parent 977cc1cfbb
commit d8d6f5929b

View File

@ -271,7 +271,7 @@ bool Mod::replace(Mod &with)
bool success = false; bool success = false;
auto t = with.type(); 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(); QLOG_DEBUG() << "Copy: " << with.m_file.filePath() << " to " << m_file.filePath();
success = QFile::copy(with.m_file.filePath(), m_file.filePath()); success = QFile::copy(with.m_file.filePath(), m_file.filePath());
@ -309,7 +309,7 @@ bool Mod::destroy()
} }
return false; 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()); QFile f(m_file.filePath());
if (f.remove()) if (f.remove())