author | zautrix <zautrix> | 2005-03-29 14:22:53 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-29 14:22:53 (UTC) |
commit | c873163eca527625ce22ed461ee5d4fec61b3b18 (patch) (side-by-side diff) | |
tree | 5d9724d4d1dd26794faae7b102c649eb8375ad36 | |
parent | 7046b36fb5dd14598ece00b575554eba2956ef84 (diff) | |
download | kdepimpi-c873163eca527625ce22ed461ee5d4fec61b3b18.zip kdepimpi-c873163eca527625ce22ed461ee5d4fec61b3b18.tar.gz kdepimpi-c873163eca527625ce22ed461ee5d4fec61b3b18.tar.bz2 |
fix
-rw-r--r-- | kaddressbook/kabcore.cpp | 12 |
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 @@ -2503,17 +2503,29 @@ void KABCore::configureResources() /* this method will be called through the QCop interface from Ko/Pi to select addresses * for the attendees list of an event. */ void KABCore::requestForNameEmailUidList(const QString& sourceChannel, const QString& uid) { QStringList nameList; QStringList emailList; QStringList uidList; + bool ok = false; + int wid = uid.toInt( &ok ); + if ( ok ) { + if ( wid != QApplication::desktop()->width() ) { + qDebug("KA/Pi: Request from different desktop geometry. Resizing ..."); + raise(); + qApp->processEvents(); + } + } else { + qDebug("KABCore::requestForNameEmailUidList:: Got invalid uid "); + } + KABC::Addressee::List list = KABC::AddresseeDialog::getAddressees(this); uint i=0; for (i=0; i < list.count(); i++) { nameList.append(list[i].realName()); emailList.append(list[i].preferredEmail()); uidList.append(list[i].uid()); } |