From a85aa04ffd31dbbc9579fb7111d3853e6e40e498 Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Sat, 21 May 2011 14:38:08 +0200 Subject: [PATCH] Fix storing binary data in StorageThread::save() This makes the unit test plasma/tests/storagetest pass again :-) --- private/storagethread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/private/storagethread.cpp b/private/storagethread.cpp index dbc825ebf..58a6c7c58 100644 --- a/private/storagethread.cpp +++ b/private/storagethread.cpp @@ -166,7 +166,7 @@ void StorageThread::save(QWeakPointer wcaller, const QVariantMap &pa QByteArray b; QDataStream ds(&b, QIODevice::WriteOnly); ds << it.value(); - query.bindValue(field, ds); + query.bindValue(field, b); } else { query.bindValue(field, it.value()); }