Fix storing binary data in StorageThread::save()

This makes the unit test plasma/tests/storagetest pass again :-)
This commit is contained in:
Frank Reininghaus 2011-05-21 14:38:08 +02:00
parent c63464c103
commit a85aa04ffd

View File

@ -166,7 +166,7 @@ void StorageThread::save(QWeakPointer<StorageJob> 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());
}