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

List:       kde-commits
Subject:    kdenetwork/kopete/protocols/jabber/ui
From:       Till Gerken <till () tantalo ! net>
Date:       2003-12-01 21:52:55
[Download RAW message or body]

CVS commit by gerken: 

Fix crash introduced by last commit here. Crash occured when creating a new
account and account() would return a NULL pointer.
CCMAIL: kopete-devel@kde.org


  M +3 -3      jabbereditaccountwidget.cpp   1.25


--- kdenetwork/kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp  #1.24:1.25
@@ -273,8 +273,8 @@ void JabberEditAccountWidget::setJIDVali
 {
 
-        if(account ()->pluginData(m_protocol, "Server") == mServer->text ())
-                revalidateJID = false;
-        else
                 revalidateJID = true;
+
+        if((account() != 0L) && (account ()->pluginData(m_protocol, "Server") == mServer->text ()))
+                revalidateJID = false;
 
 }


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

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