check for qca provider plugin, fixes #1045
[quassel.git] / src / core / corenetwork.cpp
index 9485499..534199e 100644 (file)
@@ -275,6 +275,9 @@ Cipher *CoreNetwork::cipher(const QString &target) const {
   if(target.isEmpty())
     return 0;
 
+  if(!Cipher::neededFeaturesAvailable())
+    return 0;
+
   QByteArray key = cipherKey(target);
   if(key.isEmpty())
     return 0;