summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/kabcore.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp
index 09d8523..db19dd5 100644
--- a/kaddressbook/kabcore.cpp
+++ b/kaddressbook/kabcore.cpp
@@ -2505,13 +2505,25 @@ void KABCore::configureResources()
2505 */ 2505 */
2506void KABCore::requestForNameEmailUidList(const QString& sourceChannel, const QString& uid) 2506void KABCore::requestForNameEmailUidList(const QString& sourceChannel, const QString& uid)
2507{ 2507{
2508 QStringList nameList; 2508 QStringList nameList;
2509 QStringList emailList; 2509 QStringList emailList;
2510 QStringList uidList; 2510 QStringList uidList;
2511 bool ok = false;
2512 int wid = uid.toInt( &ok );
2513 if ( ok ) {
2514 if ( wid != QApplication::desktop()->width() ) {
2515 qDebug("KA/Pi: Request from different desktop geometry. Resizing ...");
2516 raise();
2517 qApp->processEvents();
2518 }
2511 2519
2520 } else {
2521 qDebug("KABCore::requestForNameEmailUidList:: Got invalid uid ");
2522 }
2523
2512 KABC::Addressee::List list = KABC::AddresseeDialog::getAddressees(this); 2524 KABC::Addressee::List list = KABC::AddresseeDialog::getAddressees(this);
2513 uint i=0; 2525 uint i=0;
2514 for (i=0; i < list.count(); i++) 2526 for (i=0; i < list.count(); i++)
2515 { 2527 {
2516 nameList.append(list[i].realName()); 2528 nameList.append(list[i].realName());
2517 emailList.append(list[i].preferredEmail()); 2529 emailList.append(list[i].preferredEmail());