QTfrontend/campaign.cpp
changeset 9823 31c5f7e65259
parent 9822 f3b124352c3a
child 9998 736015b847e3
--- a/QTfrontend/campaign.cpp	Mon Dec 23 03:11:17 2013 +0200
+++ b/QTfrontend/campaign.cpp	Mon Dec 23 03:15:39 2013 +0200
@@ -33,8 +33,8 @@
     // if then is found rename it to use _
     QString spaceCampName = campaignName;
     spaceCampName = spaceCampName.replace(QString("_"),QString(" "));
-    if (teamfile.childGroups().contains("Campaign " + campaignName) == false and 
-			teamfile.childGroups().contains("Campaign " + spaceCampName) == true){
+    if (!teamfile.childGroups().contains("Campaign " + campaignName) and 
+			teamfile.childGroups().contains("Campaign " + spaceCampName)){
 		teamfile.beginGroup("Campaign " + spaceCampName);
 		QStringList keys = teamfile.childKeys();
 		teamfile.endGroup();