if(deb)QMessageBox::information(this, trUtf8("action", "box title to debug action"), a);
QStringList b=a.split(QString(" "));
QString c=a;
- bool ok;
+ bool ok=1;
c.remove(0,4);
int bs=b.size(), part=a.count(conf->value(QString("sepcmd")).toString());
if(part){
sav(c);
}
else if(b[0]==QString("back")){
- if(way.size()>=1){
+ if(way.size()>1){
int e;
- if(bs>1)e=b[2].toInt(&ok);
+ if(bs==2)e=b[1].toInt(&ok);
else e=1;
- for(int bcl=1;bcl<e;bcl++){
+ if(!ok)return;
+ for(int bcl=0;bcl<e;bcl++){
way.removeLast();
}
}else{