summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren van Elderen <info@lived.nl>2009-09-22 09:49:15 +0200
committerYorhel <git@yorhel.nl>2009-09-24 09:37:48 +0200
commit11812d35b14607aef409274a89c29e3e67d2aa2c (patch)
treeec5ffd35bf6c47230ea34f958dd98578c0dadb05
parent53e433db6da39c99049984ad8cd767bbab1d8acf (diff)
Fixed some minor faultsHEADmaster
-rw-r--r--geld.cpp2
-rw-r--r--transaction.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/geld.cpp b/geld.cpp
index 01f57a1..9879bba 100644
--- a/geld.cpp
+++ b/geld.cpp
@@ -94,7 +94,7 @@ void Geld::initDB(QString file)
"description TEXT"
")"
);
- q.exec("VACCUM");
+ q.exec("VACUUM");
}
diff --git a/transaction.cpp b/transaction.cpp
index 36ca247..a0fa304 100644
--- a/transaction.cpp
+++ b/transaction.cpp
@@ -70,7 +70,7 @@ void Transaction::save(int id)
QSqlQuery q;
q.prepare(id
? "UPDATE transactions SET date = ?, amount = ?, contra = ?, description = ? WHERE id = ?"
- : "INSERT INTO transactions (date, amount, contra, description) VALUES (?, ?, ?, ?, ?)"
+ : "INSERT INTO transactions (date, amount, contra, description) VALUES (?, ?, ?, ?)"
);
q.addBindValue(m_ui->Date->text());
q.addBindValue(m_ui->Amount->text().toDouble()*100);