Fix build without SSL
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 7 Nov 2013 20:44:11 +0000 (21:44 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 7 Nov 2013 20:44:49 +0000 (21:44 +0100)
This one slipped in.

src/qtui/settingspages/identitiessettingspage.cpp

index 4d2d433..4efcb84 100644 (file)
@@ -175,11 +175,12 @@ bool IdentitiesSettingsPage::testHasChanged()
         if (currentId != 0) {
             changedIdentities.removeAll(currentId);
             CertIdentity temp(currentId, this);
         if (currentId != 0) {
             changedIdentities.removeAll(currentId);
             CertIdentity temp(currentId, this);
+#ifdef HAVE_SSL
             // we need to set the cert and key manually, as they aren't synced
             CertIdentity *old = identities[currentId];
             temp.setSslKey(old->sslKey());
             temp.setSslCert(old->sslCert());
             // we need to set the cert and key manually, as they aren't synced
             CertIdentity *old = identities[currentId];
             temp.setSslKey(old->sslKey());
             temp.setSslCert(old->sslCert());
-
+#endif
             ui.identityEditor->saveToIdentity(&temp);
             temp.setIdentityName(identities[currentId]->identityName());
             if (temp != *Client::identity(currentId) || temp.isDirty())
             ui.identityEditor->saveToIdentity(&temp);
             temp.setIdentityName(identities[currentId]->identityName());
             if (temp != *Client::identity(currentId) || temp.isDirty())