need to init qca

This commit is contained in:
Aaron Seigo 2011-05-26 16:02:01 +02:00
parent aeadba3adf
commit 3b6a49b5bd

View File

@ -381,6 +381,8 @@ QString Package::contentsHash() const
return QString();
}
//FIXME: the initializer should go somewhere global to be shared between all plasma uses?
QCA::Initializer init;
if (!QCA::isSupported("sha1")) {
kWarning() << "can not create hash for" << path() << "due to no SHA1 support in QCA2";
return QString();