summaryrefslogtreecommitdiffstats
path: root/api/logic/modplatform/ftb/FtbPrivatePackManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'api/logic/modplatform/ftb/FtbPrivatePackManager.cpp')
-rw-r--r--api/logic/modplatform/ftb/FtbPrivatePackManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/logic/modplatform/ftb/FtbPrivatePackManager.cpp b/api/logic/modplatform/ftb/FtbPrivatePackManager.cpp
index 15449592..c3477cec 100644
--- a/api/logic/modplatform/ftb/FtbPrivatePackManager.cpp
+++ b/api/logic/modplatform/ftb/FtbPrivatePackManager.cpp
@@ -26,7 +26,8 @@ void FtbPrivatePackManager::save() const
}
try
{
- FS::write(m_filename, currentPacks.toList().join('\n').toUtf8());
+ QStringList list = currentPacks.toList();
+ FS::write(m_filename, list.join('\n').toUtf8());
dirty = false;
}
catch(...)