6 |
|
this->filters=filter; |
7 |
|
this->backupsEnabled=!noBackups; |
8 |
|
|
9 |
< |
if(this->filesToProcess.size()==0){ |
9 |
> |
if(this->filesToProcess.isEmpty()){ |
10 |
|
UtilXmlTools::displayErrorMessage("Loading xml files","No XML files were found for the wildcard: "+filesWildcard); |
11 |
|
} |
12 |
|
} |
66 |
|
for(int k=0; k<currValuesList.size(); k++){ |
67 |
|
for(int m=0; m<valuesToRemoveList.size(); m++){ |
68 |
|
if(currValuesList[k]==valuesToRemoveList[m]){ |
69 |
< |
currValuesList[k]=""; // remove it |
69 |
> |
currValuesList[k]=""; // flag to deletion |
70 |
|
elementChanged=true; |
71 |
|
} |
72 |
|
} |
73 |
|
} |
74 |
|
|
75 |
|
if(elementChanged){ // If curr element changed update the XML |
76 |
+ |
currValuesList.removeAll(""); // remove all files flagged to deletion |
77 |
|
elements[j].text()=currValuesList.join(' ').toLatin1().constData(); |
78 |
|
elementChanged=false; |
79 |
|
} |