X-Git-Url: http://git.maemo.org/git/?p=jenirok;a=blobdiff_plain;f=src%2Fcommon%2Fcache.cpp;h=5f9a1651b1a3ba2d4262c0421182afa67d5b7ce2;hp=2e01f07d95aaf8d29519141d63a0dc8a57a9392a;hb=d97cbb873b74e7a9a9ecf3363a14d8a33a251cdc;hpb=99cc5426ffa010cd2b6a871886b210faac34f69d diff --git a/src/common/cache.cpp b/src/common/cache.cpp index 2e01f07..5f9a165 100644 --- a/src/common/cache.cpp +++ b/src/common/cache.cpp @@ -108,9 +108,12 @@ bool Cache::addItem(Source::Result const& result) query.bindValue(":street", result.street); query.bindValue(":city", result.city); + qDebug() << result.number << result.name << result.street << result.city; + if(!query.exec()) { + qDebug() << "Unable to add item to cache"; ret = false; }