QTfrontend/team.cpp
branchwebgl
changeset 8833 c13ebed437cb
parent 8508 f849b7b3af1d
child 9080 9b42757d7e71
--- a/QTfrontend/team.cpp	Wed Feb 20 02:21:58 2013 +0100
+++ b/QTfrontend/team.cpp	Tue Apr 02 21:00:57 2013 +0200
@@ -226,7 +226,9 @@
         OldTeamName = m_name;
     }
 
-    QSettings teamfile(QString("physfs://Teams/%1.hwt").arg(m_name), QSettings::IniFormat, 0);
+    QString fileName = QString("physfs://Teams/%1.hwt").arg(m_name);
+    DataManager::ensureFileExists(fileName);
+    QSettings teamfile(fileName, QSettings::IniFormat, 0);
     teamfile.setIniCodec("UTF-8");
     teamfile.setValue("Team/Name", m_name);
     teamfile.setValue("Team/Grave", m_grave);