return;
}
//QString z=d+" will be changed to "+e;
- if(conf->value(QString("saychange")).toBool())QMessageBox::information(this, trUtf8("variable text change", "title to warn about variable content change"), trUtf8("value of "+d.toLocal8Bit()+" changed to "+e.toLocal8Bit(), "text to warn about variable content change"));
+ if(conf->value(QString("saychange")).toBool()||deb)QMessageBox::information(this, trUtf8("variable text change", "title to warn about variable content change"), trUtf8("value of "+d.toLocal8Bit()+" changed to "+e.toLocal8Bit(), "text to warn about variable content change"));
conf->setValue(d, e);
}
else if(b[0]==QString("setint")){
conf->setValue(QString("start"), QVariant("begin"));
conf->setValue(QString("restore"), QVariant("http://www.abc.de/db"));
conf->setValue(QString("db"), QVariant("/data/data/eu.nothing2do.diarymobile/files/db"));
- conf->setValue(QString("selectbuttons"), QVariant("select keyword,label,action from buttons order by label;"));
+ conf->setValue(QString("selectbuttons"), QVariant("select keyword,label,action from buttons order by id;"));
conf->setValue(QString("sqlbuttons"), QVariant("INSERT INTO buttons (keyword,label,action) VALUES(?,?,?);"));
conf->setValue(QString("selectraw"), QVariant("select date,texte from raw order by date;"));
conf->setValue(QString("menuback"), QVariant("-menuback"));
exec(QList<QString> ({conf->value(QString("select")+a).toString()}));
QString tmp="file"+a;
QFile b(conf->value(tmp).toString());
- b.open(QIODevice::WriteOnly/*|QIODevice::Text*/);
+ b.open(QIODevice::WriteOnly);
QTextStream c(&b);
//int d=conf->value(QString("column")+a).toInt()-1;
int d=q->record().count()-1;
b.close();
QUrl upload(QString("ftp://")+conf->value(QString("userftp")).toString()+QString(":")+conf->value(QString("passftp")).toString()+QString("@")+conf->value(QString("hostftp")).toString()+QString("/")+conf->value(QString("file")+a).toString());
net=new QNetworkAccessManager(this);
- b.open(QIODevice::ReadOnly /*| QIODevice::Text*/);
+ b.open(QIODevice::ReadOnly);
rep=net->put(QNetworkRequest(upload), b.readAll());
qDebug()<<"net->put : "<<rep<< " upload : "<<upload.url();
connect(rep, SIGNAL(finished()), this, SLOT(Uisent()));