From 449164733b0a1a3096ca1bbd33efee178b95bd82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 17 Jun 2018 15:04:58 +0200 Subject: kopete: Add descriptions for connection options This relates to bug 2669 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- .../jabber/ui/dlgjabbereditaccountwidget.ui | 56 ++++++++++++++++++++++ .../jabber/ui/jabbereditaccountwidget.cpp | 17 +++++-- 2 files changed, 70 insertions(+), 3 deletions(-) (limited to 'kopete') diff --git a/kopete/protocols/jabber/ui/dlgjabbereditaccountwidget.ui b/kopete/protocols/jabber/ui/dlgjabbereditaccountwidget.ui index e0a14f1c..551d9322 100644 --- a/kopete/protocols/jabber/ui/dlgjabbereditaccountwidget.ui +++ b/kopete/protocols/jabber/ui/dlgjabbereditaccountwidget.ui @@ -288,6 +288,34 @@ Check this box to enable SSL encrypted communication with the server. Note that this is not end-to-end encryption, but rather encrypted communication with the server. + + + lblUseSSL + + + false + + + + 3 + 1 + 0 + 0 + + + + + 0 + 0 + + + + <dd>Select this only for old Jabber servers that use a separate SSL port. Newer servers use StartSSL and this option should not be required.</dd> + + + WordBreak|AlignVCenter + + cbAllowPlainTextPassword @@ -427,6 +455,34 @@ + + + lblCustomServer + + + false + + + + 3 + 1 + 0 + 0 + + + + + 0 + 0 + + + + <dd>Newer Jabber servers may not work correctly if a server name and port are enforced, because this would prevent the use of StartSSL and a newer Jabber protocol.</dd> + + + WordBreak|AlignVCenter + + diff --git a/kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp b/kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp index 4fecd6c4..82f9aaf0 100644 --- a/kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp +++ b/kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp @@ -93,6 +93,9 @@ void JabberEditAccountWidget::reopen () mServer->setText (account()->configGroup()->readEntry ("Server", TQString())); cbUseSSL->setChecked (account()->configGroup()->readBoolEntry( "UseSSL", false)); + if( cbUseSSL->isChecked() ) { + lblUseSSL->setEnabled(true); + } mPort->setValue (account()->configGroup()->readNumEntry("Port", 5222)); @@ -106,6 +109,7 @@ void JabberEditAccountWidget::reopen () mServer->setEnabled(true); labelPort->setEnabled(true); mPort->setEnabled(true); + lblCustomServer->setEnabled(true); } else { @@ -226,6 +230,7 @@ void JabberEditAccountWidget::updateServerField () mServer->setEnabled(false); labelPort->setEnabled(false); mPort->setEnabled(false); + lblCustomServer->setEnabled(false); } else { @@ -233,6 +238,7 @@ void JabberEditAccountWidget::updateServerField () mServer->setEnabled(true); labelPort->setEnabled(true); mPort->setEnabled(true); + lblCustomServer->setEnabled(true); } } @@ -274,11 +280,16 @@ void JabberEditAccountWidget::slotChangePasswordFinished () void JabberEditAccountWidget::sslToggled (bool value) { - if (value && (mPort->value() == 5222)) + if (value && (mPort->value() == 5222)) { mPort->stepUp (); - else - if(!value && (mPort->value() == 5223)) + } + else { + if(!value && (mPort->value() == 5223)) { mPort->stepDown (); + } + } + + lblUseSSL->setEnabled( value ); } #include "jabbereditaccountwidget.moc" -- cgit v1.2.1