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

List:       kde-commits
Subject:    KDE/kdenetwork/kopete/protocols/oscar/icq/ui
From:       Christian Ehrlicher <Ch.Ehrlicher () gmx ! de>
Date:       2007-02-21 11:54:03
Message-ID: 1172058843.965301.9026.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 635916 by chehrlic:

fix ICQEditAccountWidget::validateData() - allow every uin which is a valid number

 M  +3 -1      icqeditaccountwidget.cpp  


--- trunk/KDE/kdenetwork/kopete/protocols/oscar/icq/ui/icqeditaccountwidget.cpp #635915:635916
@@ -265,9 +265,11 @@
 bool ICQEditAccountWidget::validateData()
 {
 	kDebug(14153) << k_funcinfo << "Called." << endl;
+	bool bOk;
 	QString userId = mAccountSettings->edtAccountId->text();
+	qulonglong uid = userId.toULongLong( &bOk );
 	
-	if( (userId.length()< 8) || userId.isEmpty() )
+	if( !bOk || uid == 0 || userId.isEmpty() )
 	{	KMessageBox::queuedMessageBox(this, KMessageBox::Sorry,
 	 	                              i18n("<qt>You must enter a valid ICQ Nr.</qt>"), i18n("ICQ"));
 		return false;
[prev in list] [next in list] [prev in thread] [next in thread] 

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