summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-09-03 13:14:32 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-09-03 13:14:32 -0500
commit59e52358221a0e1062d17d0e41f9cc6f4ee99553 (patch)
tree143223a12289351a3cca6a5651739e81fd9a25ff
parenta6343654e8121d77bace9a4c4db8fe2dfd30cbe5 (diff)
downloadtdelibs-59e52358221a0e1062d17d0e41f9cc6f4ee99553.tar.gz
tdelibs-59e52358221a0e1062d17d0e41f9cc6f4ee99553.zip
Fix compiler warning regarding missing braces
-rw-r--r--tdeio/kssl/ksslinfodlg.cc40
1 files changed, 22 insertions, 18 deletions
diff --git a/tdeio/kssl/ksslinfodlg.cc b/tdeio/kssl/ksslinfodlg.cc
index fa1e380ba..59581905d 100644
--- a/tdeio/kssl/ksslinfodlg.cc
+++ b/tdeio/kssl/ksslinfodlg.cc
@@ -134,24 +134,28 @@ void KSSLInfoDlg::launchConfig() {
void KSSLInfoDlg::setSecurityInQuestion(bool isIt) {
- d->inQuestion = isIt;
- if (KSSL::doesSSLWork())
- if (isIt) {
- d->pixmap->setPixmap(BarIcon("halfencrypted"));
- if (d->m_secCon) {
- d->info->setText(i18n("The main part of this document is secured with SSL, but some parts are not."));
- } else {
- d->info->setText(i18n("Some of this document is secured with SSL, but the main part is not."));
- }
- } else {
- if (d->m_secCon) {
- d->pixmap->setPixmap(BarIcon("encrypted"));
- d->info->setText(i18n("Current connection is secured with SSL."));
- } else {
- d->pixmap->setPixmap(BarIcon("decrypted"));
- d->info->setText(i18n("Current connection is not secured with SSL."));
- }
- }
+ d->inQuestion = isIt;
+ if (KSSL::doesSSLWork()) {
+ if (isIt) {
+ d->pixmap->setPixmap(BarIcon("halfencrypted"));
+ if (d->m_secCon) {
+ d->info->setText(i18n("The main part of this document is secured with SSL, but some parts are not."));
+ }
+ else {
+ d->info->setText(i18n("Some of this document is secured with SSL, but the main part is not."));
+ }
+ }
+ else {
+ if (d->m_secCon) {
+ d->pixmap->setPixmap(BarIcon("encrypted"));
+ d->info->setText(i18n("Current connection is secured with SSL."));
+ }
+ else {
+ d->pixmap->setPixmap(BarIcon("decrypted"));
+ d->info->setText(i18n("Current connection is not secured with SSL."));
+ }
+ }
+ }
}