Browse Source

Fix compiler warning regarding missing braces

pull/1/head
Timothy Pearson 3 years ago
parent
commit
59e5235822
1 changed files with 22 additions and 18 deletions
  1. 22
    18
      tdeio/kssl/ksslinfodlg.cc

+ 22
- 18
tdeio/kssl/ksslinfodlg.cc View File

@@ -134,24 +134,28 @@ void KSSLInfoDlg::launchConfig() {
134 134
 
135 135
 
136 136
 void KSSLInfoDlg::setSecurityInQuestion(bool isIt) {
137
-    d->inQuestion = isIt;
138
-    if (KSSL::doesSSLWork())
139
-        if (isIt) {
140
-            d->pixmap->setPixmap(BarIcon("halfencrypted"));
141
-            if (d->m_secCon) {
142
-                d->info->setText(i18n("The main part of this document is secured with SSL, but some parts are not."));
143
-            } else {
144
-                d->info->setText(i18n("Some of this document is secured with SSL, but the main part is not."));
145
-            }
146
-        } else {
147
-            if (d->m_secCon) {
148
-                d->pixmap->setPixmap(BarIcon("encrypted"));
149
-                d->info->setText(i18n("Current connection is secured with SSL."));
150
-            } else {
151
-                d->pixmap->setPixmap(BarIcon("decrypted"));
152
-                d->info->setText(i18n("Current connection is not secured with SSL."));
153
-            }
154
-        }
137
+	d->inQuestion = isIt;
138
+	if (KSSL::doesSSLWork()) {
139
+		if (isIt) {
140
+			d->pixmap->setPixmap(BarIcon("halfencrypted"));
141
+			if (d->m_secCon) {
142
+				d->info->setText(i18n("The main part of this document is secured with SSL, but some parts are not."));
143
+			}
144
+			else {
145
+				d->info->setText(i18n("Some of this document is secured with SSL, but the main part is not."));
146
+			}
147
+		}
148
+		else {
149
+			if (d->m_secCon) {
150
+				d->pixmap->setPixmap(BarIcon("encrypted"));
151
+				d->info->setText(i18n("Current connection is secured with SSL."));
152
+			}
153
+			else {
154
+				d->pixmap->setPixmap(BarIcon("decrypted"));
155
+				d->info->setText(i18n("Current connection is not secured with SSL."));
156
+			}
157
+		}
158
+	}
155 159
 }
156 160
 
157 161
 

Loading…
Cancel
Save