QTfrontend/team.cpp
changeset 8508 f849b7b3af1d
parent 8346 3443e0de2c9d
child 9080 9b42757d7e71
--- a/QTfrontend/team.cpp	Sat Feb 16 23:28:16 2013 +0400
+++ b/QTfrontend/team.cpp	Sun Feb 17 00:25:53 2013 +0400
@@ -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);