Changeset d78e9d1


Ignore:
Timestamp:
11/14/13 10:38:20 (14 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
4beaa6b
Parents:
514c193
Message:

Now re-assign the QStringList when removing the one index

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-softwaremanager/pbiDBAccess.cpp

    r514c193 rd78e9d1  
    228228    qDebug() << "Check description line:" << tmp[i-1] << QString::number(i); 
    229229    tmp[i-1] = tmp[i-1].simplified(); 
    230     if(tmp[i=1].isEmpty() || tmp[i].isEmpty() ){continue;} 
    231     else if(tmp[i-1].endsWith(".") || tmp[i-1].endsWith(":") || tmp[i-1].endsWith(";") || tmp[i-1].endsWith("?") || tmp[i-1].endsWith("!") ){ continue; } 
    232     else if( tmp[i].startsWith("*") || tmp[i].startsWith("0") || tmp[i].startsWith("-") || tmp[i].startsWith("o ") ){ continue; } 
     230    if(tmp[i=1].isEmpty() || tmp[i].isEmpty() ){} 
     231    else if(tmp[i-1].endsWith(".") || tmp[i-1].endsWith(":") || tmp[i-1].endsWith(";") || tmp[i-1].endsWith("?") || tmp[i-1].endsWith("!") ){} 
     232    else if( tmp[i].startsWith("*") || tmp[i].startsWith("0") || tmp[i].startsWith("-") || tmp[i].startsWith("o ") ){} 
    233233    else{ 
    234234      //Bad line break, combine it with the previous line 
    235235      tmp[i-1].append(" "+tmp[i]); 
    236       tmp.removeAt(i); 
     236      tmp = tmp.removeAt(i); 
    237237      i--; 
    238238    } 
Note: See TracChangeset for help on using the changeset viewer.