[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenetwork/kmail
From:       Aaron J. Seigo <aseigo () olympusproject ! org>
Date:       2003-01-17 9:22:23
[Download RAW message or body]

CVS commit by aseigo: 

microoptimization; stumbled on it while looking into george's TLS problems


  M +6 -4      kmcomposewin.cpp   1.644


--- kdenetwork/kmail/kmcomposewin.cpp  #1.643:1.644
@@ -4931,10 +4931,12 @@ void KMComposeWin::slotIdentityChanged(u
 
   if (!mBtnTransport->isChecked()) {
-    if (ident.transport().isEmpty())
+    QString transp = ident.transport();
+    if (transp.isEmpty())
+    {
       mMsg->removeHeaderField("X-KMail-Transport");
+      transp = mTransport->text(0);
+    }
     else
-      mMsg->setHeaderField("X-KMail-Transport", ident.transport());
-    QString transp = ident.transport();
-    if (transp.isEmpty()) transp = mTransport->text(0);
+      mMsg->setHeaderField("X-KMail-Transport", transp);
     bool found = false;
     int i;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic