Permalink
Browse files

Now re-assign the QStringList when removing the one index

  • Loading branch information...
1 parent 514c193 commit d78e9d19c60638be07583a0d985dd8cb0476f2a2 Ken Moore committed Nov 14, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 src-qt4/pc-softwaremanager/pbiDBAccess.cpp
@@ -227,13 +227,13 @@ QStringList PBIDBAccess::parseAppMetaLine(QString line){
for(int i=1; i<tmp.length(); i++){
qDebug() << "Check description line:" << tmp[i-1] << QString::number(i);
tmp[i-1] = tmp[i-1].simplified();
- if(tmp[i=1].isEmpty() || tmp[i].isEmpty() ){continue;}
- else if(tmp[i-1].endsWith(".") || tmp[i-1].endsWith(":") || tmp[i-1].endsWith(";") || tmp[i-1].endsWith("?") || tmp[i-1].endsWith("!") ){ continue; }
- else if( tmp[i].startsWith("*") || tmp[i].startsWith("0") || tmp[i].startsWith("-") || tmp[i].startsWith("o ") ){ continue; }
+ if(tmp[i=1].isEmpty() || tmp[i].isEmpty() ){}
+ else if(tmp[i-1].endsWith(".") || tmp[i-1].endsWith(":") || tmp[i-1].endsWith(";") || tmp[i-1].endsWith("?") || tmp[i-1].endsWith("!") ){}
+ else if( tmp[i].startsWith("*") || tmp[i].startsWith("0") || tmp[i].startsWith("-") || tmp[i].startsWith("o ") ){}
else{
//Bad line break, combine it with the previous line
tmp[i-1].append(" "+tmp[i]);
- tmp.removeAt(i);
+ tmp = tmp.removeAt(i);
i--;
}
}

0 comments on commit d78e9d1

Please sign in to comment.