added SignalProxy::isSecure() to determine if all connections are secure (ssl encrypt...
[quassel.git] / src / qtui / settingspages / identitiessettingspage.cpp
index e51fa7a..4f87c83 100644 (file)
@@ -76,7 +76,10 @@ IdentitiesSettingsPage::IdentitiesSettingsPage(QWidget *parent)
   connect(ui.nicknameList, SIGNAL(itemSelectionChanged()), this, SLOT(setWidgetStates()));
 
 #ifdef HAVE_SSL
-  ui.keyAndCertSettings->setCurrentIndex(1);
+  if(Client::signalProxy()->isSecure())
+    ui.keyAndCertSettings->setCurrentIndex(2);
+  else
+    ui.keyAndCertSettings->setCurrentIndex(1);
 #else
   ui.keyAndCertSettings->setCurrentIndex(0);
 #endif