QTfrontend/campaign.cpp
changeset 9823 31c5f7e65259
parent 9822 f3b124352c3a
child 9998 736015b847e3
equal deleted inserted replaced
9822:f3b124352c3a 9823:31c5f7e65259
    31     
    31     
    32     // if entry not found check if there is written without _
    32     // if entry not found check if there is written without _
    33     // if then is found rename it to use _
    33     // if then is found rename it to use _
    34     QString spaceCampName = campaignName;
    34     QString spaceCampName = campaignName;
    35     spaceCampName = spaceCampName.replace(QString("_"),QString(" "));
    35     spaceCampName = spaceCampName.replace(QString("_"),QString(" "));
    36     if (teamfile.childGroups().contains("Campaign " + campaignName) == false and 
    36     if (!teamfile.childGroups().contains("Campaign " + campaignName) and 
    37 			teamfile.childGroups().contains("Campaign " + spaceCampName) == true){
    37 			teamfile.childGroups().contains("Campaign " + spaceCampName)){
    38 		teamfile.beginGroup("Campaign " + spaceCampName);
    38 		teamfile.beginGroup("Campaign " + spaceCampName);
    39 		QStringList keys = teamfile.childKeys();
    39 		QStringList keys = teamfile.childKeys();
    40 		teamfile.endGroup();
    40 		teamfile.endGroup();
    41 		for (int i=0;i<keys.size();i++) {			
    41 		for (int i=0;i<keys.size();i++) {			
    42 			QVariant value = teamfile.value("Campaign " + spaceCampName + "/" + keys[i]);
    42 			QVariant value = teamfile.value("Campaign " + spaceCampName + "/" + keys[i]);