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

List:       kde-commits
Subject:    branches/KDE/3.5/kdenetwork/kopete/kopete/config/identity
From:       Olivier Goffart <ogoffart () kde ! org>
Date:       2005-10-24 20:37:10
Message-ID: 1130186230.564786.10287.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 473874 by ogoffart:

CCBUG: 114604 
make sure global identity action are canceled when they are canceled



 M  +13 -2     kopeteidentityconfig.cpp  


--- branches/KDE/3.5/kdenetwork/kopete/kopete/config/identity/kopeteidentityconfig.cpp \
#473873:473874 @@ -401,8 +401,13 @@
 	
 void KopeteIdentityConfig::slotNewIdentity()
 {
-	QString newIdentityName = KInputDialog::getText(i18n("New Identity"), \
i18n("Identity name:")); +	bool ok;
+	QString newIdentityName = KInputDialog::getText(i18n("New Identity"), \
i18n("Identity name:") , QString::null , &ok); +	
+	if(newIdentityName.isEmpty() || !ok)
+		return;
 
+	
 	GlobalIdentitiesManager::self()->createNewIdentity(newIdentityName);
 
 	slotUpdateCurrentIdentity(newIdentityName);
@@ -411,7 +416,13 @@
 
 void KopeteIdentityConfig::slotCopyIdentity()
 {
-	QString copyName = KInputDialog::getText(i18n("Copy Identity"), i18n("Identity \
name:")); +	bool ok;
+	QString copyName = KInputDialog::getText(i18n("Copy Identity"), i18n("Identity \
name:") , QString::null, &ok); +	
+	if(copyName.isEmpty() || !ok)
+		return;
+
+	
 	if(!GlobalIdentitiesManager::self()->isIdentityPresent(copyName))
 	{
 		GlobalIdentitiesManager::self()->copyIdentity(copyName, d->selectedIdentity);


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

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