From c873163eca527625ce22ed461ee5d4fec61b3b18 Mon Sep 17 00:00:00 2001 From: zautrix Date: Tue, 29 Mar 2005 14:22:53 +0000 Subject: fix --- (limited to 'kaddressbook') diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index 09d8523..db19dd5 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp @@ -2508,7 +2508,19 @@ void KABCore::requestForNameEmailUidList(const QString& sourceChannel, const QSt 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++) -- cgit v0.9.0.2