recreating some indexes that were lost in an upgrade
[quassel.git] / src / client / client.cpp
index 310e8e4..9956cd2 100644 (file)
@@ -221,8 +221,10 @@ const Identity *Client::identity(IdentityId id) {
 
 void Client::createIdentity(const CertIdentity &id) {
   QVariantMap additional;
+#ifdef HAVE_SSL
   additional["KeyPem"] = id.sslKey().toPem();
   additional["CertPem"] = id.sslCert().toPem();
+#endif
   emit instance()->requestCreateIdentity(id, additional);
 }
 
@@ -396,6 +398,12 @@ void Client::removeBuffer(BufferId id) {
   bufferSyncer()->requestRemoveBuffer(id);
 }
 
+void Client::renameBuffer(BufferId bufferId, const QString &newName) {
+  if(!bufferSyncer())
+    return;
+  bufferSyncer()->requestRenameBuffer(bufferId, newName);
+}
+
 void Client::bufferRemoved(BufferId bufferId) {
   // select a sane buffer (status buffer)
   /* we have to manually select a buffer because otherwise inconsitent changes