summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show 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
@@ -2510,2 +2510,14 @@ void KABCore::requestForNameEmailUidList(const QString& sourceChannel, const QSt
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 ");
+ }