--- a/QTfrontend/team.cpp Thu Aug 11 23:05:14 2016 +0300
+++ b/QTfrontend/team.cpp Sun Dec 17 00:09:24 2017 +0100
@@ -208,6 +208,14 @@
return f.exists();
}
+// Returns true if the team name has been changed but a file with the same team name already exists.
+// So if this team would be saved, another team file would be overwritten, which is generally not
+// desired.
+bool HWTeam::wouldOverwriteOtherFile()
+{
+ return (m_name != OldTeamName) && fileExists();
+}
+
bool HWTeam::deleteFile()
{
if(m_isNetTeam)