From a7a4f339dec2dfb297b0ce651ee935895008f1ab Mon Sep 17 00:00:00 2001 From: Norbert Moutarde Date: Sat, 21 Jun 2014 12:14:47 +0200 Subject: [PATCH] mistake in SQL "selectbuttons" --- mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index ec6fdbe..17cc6cb 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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); } -- 2.45.1