Fix #361
This commit is contained in:
parent
977cc1cfbb
commit
d8d6f5929b
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user