summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2012-05-18 03:34:34 +0200
committerSebastian Reichel <sre@ring0.de>2012-05-18 03:34:34 +0200
commit5dc82656f40bc4b5902f973f1ff1c90239fefb04 (patch)
tree3f05f1923b1bdf679c98a25c0f694995438071e5
parent5cd834ef157775bbe5de8db4a241f93123a7c9d0 (diff)
downloadserial-barcode-scanner-5dc82656f40bc4b5902f973f1ff1c90239fefb04.tar.bz2
use correct statement in undo
-rw-r--r--db.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/db.vala b/db.vala
index 747b7ba..5b32cd6 100644
--- a/db.vala
+++ b/db.vala
@@ -137,7 +137,7 @@ public class Database {
rc = this.undo_stmt1.step();
switch(rc) {
case Sqlite.ROW:
- pid = uint64.parse(this.product_stmt.column_text(0));
+ pid = uint64.parse(this.undo_stmt1.column_text(0));
break;
case Sqlite.DONE:
stdout.printf("undo not possible without purchases");