From: Norbert Moutarde Date: Thu, 19 Jun 2014 09:12:15 +0000 (+0200) Subject: back now works X-Git-Url: https://git.nothing2do.fr/?a=commitdiff_plain;h=f2652557adac80b3e9d6dcf3b47ebd928b1d55fa;p=diary-mobile.git back now works --- diff --git a/mainwindow.cpp b/mainwindow.cpp index 37e4046..f91a650 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -157,7 +157,7 @@ void MainWindow::action(const QString &a){ 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){ @@ -227,11 +227,12 @@ void MainWindow::action(const QString &a){ 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