]> git.nothing2do.fr Git - diary-mobile.git/commitdiff
a little fix
authorNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Wed, 4 Dec 2013 14:36:04 +0000 (15:36 +0100)
committerNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Wed, 4 Dec 2013 14:36:04 +0000 (15:36 +0100)
mainwindow.cpp
ui.sql

index 36cb4c61cd25168e7ee21ee6f0a2861198433b94..9bd6841899c0681394299a8a50d0ebfed7142239 100644 (file)
@@ -56,7 +56,7 @@ void MainWindow::start(){
     r=q->record();
     qDebug()<<"nmb of col : "<<r.count();
     int labCol = r.indexOf("label");
-    int sqlCol = r.indexOf("sql");
+    int sqlCol = r.indexOf("action");
     while(q->next()){
         addWidget(q->value(sqlCol).toString(), new CLabel(q->value(labCol).toString()));
     }
diff --git a/ui.sql b/ui.sql
index 8658b1e662aa8ae1e844f93ab238e662c639aa3c..8ee5b68e6907b80cbc98fea642a324abb893420d 100644 (file)
--- a/ui.sql
+++ b/ui.sql
@@ -1 +1 @@
-insert into ui (keyword, label, sql) values ('begin', 'chat', 'select texte from raw')
+insert into ui (keyword, label, action) values ('begin', 'chat', 'select texte from raw')