From: Norbert Moutarde Date: Sat, 28 Dec 2013 01:53:16 +0000 (+0100) Subject: forget X-Git-Url: https://git.nothing2do.fr/?a=commitdiff_plain;h=36e99ce950de0491fe1ac39e2fbeea1c6a3da947;p=diary-mobile.git forget --- diff --git a/mainwindow.cpp b/mainwindow.cpp index 461ef16..aa92d04 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -316,7 +316,6 @@ void MainWindow::createDB(){ qDebug()<<"createDB()"; exec(QList({"create table ui(keyword text, label text, action text);"})); exec(QList({"create table raw(date timestamp, texte text);"})); - exec(QList({"insert into ui (keyword, label, action) values ('begin', 'new', 'new')"})); } void MainWindow::addButtonDB(){ qDebug()<<"addButtonDB()"; @@ -367,7 +366,7 @@ void MainWindow::updateUi(){ QUrl update(conf->value(QString("update")).toString()); m = new FileDownloader(update, this); connect(m, SIGNAL(downloaded()), SLOT(writeUpdate())); - + start(); } @@ -428,7 +427,6 @@ QByteArray FileDownloader::downloadedData() const void MainWindow::writeUpdate(){ qDebug()<<"downloaded : "<downloadedData().size()<<" byte"; /* put newly downloaded sql file into database */ - //int nb=m->downloadedData().count(";"); int a=m->downloadedData().count(';'); for(int i=0; iprepare("<prepare(m->downloadedData().split(';').at(i)); diff --git a/ui.sql b/ui.sql index 306ca37..088aaf7 100644 --- a/ui.sql +++ b/ui.sql @@ -1,5 +1,6 @@ PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; +INSERT INTO "ui" (keyword, label, action) VALUES('begin','new', 'new'); INSERT INTO "ui" (keyword, label, action) VALUES('begin','fille','fille'); INSERT INTO "ui" (keyword, label, action) VALUES('fille','aurelie','f-aurelie'); INSERT INTO "ui" (keyword, label, action) VALUES('fill-aurelie','discours','f-a-discours'); @@ -13,7 +14,7 @@ INSERT INTO "ui" (keyword, label, action) VALUES('lie-odysseu-subway','julie','l INSERT INTO "ui" (keyword, label, action) VALUES('lie-odysseum','oliver''s pub','lie-odysseu-oliver'); INSERT INTO "ui" (keyword, label, action) VALUES('lie-odysseu-oliver','valentine','l-o-opub-val'); INSERT INTO "ui" (keyword, label, action) VALUES('lie-odysseu-opub-val','s''enerve quand je lui demande ce qu''elle veut','begin'); -INSERT INTO "ui" (keyword, label, action) VALUES('begin','olìver'' s','begi-oliver '); +INSERT INTO "ui" (keyword, label, action) VALUES('begin','oliver'' s','begi-oliver '); INSERT INTO "ui" (keyword, label, action) VALUES('begi-oliver','audrey','begi-olive-audrey'); INSERT INTO "ui" (keyword, label, action) VALUES('begi-olive-audrey','Pourquoi vous me prenez pour un perver ?','begi-olive-audre-perver'); INSERT INTO "ui" (keyword, label, action) VALUES('begi-olive-audre-perver','"On ne te prends pas pour un perver."','begi-olive-audre-perve-non');