]> git.nothing2do.fr Git - diary-mobile.git/commitdiff
mistake in SQL "selectbuttons"
authorNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Sat, 21 Jun 2014 10:14:47 +0000 (12:14 +0200)
committerNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Sat, 21 Jun 2014 10:14:47 +0000 (12:14 +0200)
mainwindow.cpp

index ec6fdbec7b8a75bc03456a99f07bc62bfa32ed2a..17cc6cb64384995d08bf1945993a2f45abd77d0d 100644 (file)
@@ -495,7 +495,7 @@ void MainWindow::firstrun(){
     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 ui order by label;"));
+    conf->setValue(QString("selectbuttons"), QVariant("select keyword,label,action from buttons order by label;"));
     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"));
@@ -1038,7 +1038,7 @@ void MainWindow::reset(const QString & a){
 void MainWindow::use(const QString & a){
     bool ok;
     QString use=QInputDialog::getText(this, trUtf8("tmp URL", "Title of box where ask for current type"), trUtf8("Enter string", "Label of box where ask for current type"), QLineEdit::Normal, a, &ok);
-    if(!ok){
+    if(ok){
         //currenttype=use;
         conf->setValue(QString("currenttype"), use);
     }