-rw-r--r-- | kaddressbook/kabcore.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index 4299ebd..2f9f1df 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp @@ -2043,3 +2043,3 @@ void KABCore::requestForDetails(const QString& sourceChannel, const QString& ses { -// qDebug("KABCore::requestForDetails %s %s %s %s %s", sourceChannel.latin1(), sessionuid.latin1(), name.latin1(), email.latin1(), uid.latin1()); + //qDebug("KABCore::requestForDetails %s %s %s %s %s", sourceChannel.latin1(), sessionuid.latin1(), name.latin1(), email.latin1(), uid.latin1()); @@ -2057,8 +2057,9 @@ void KABCore::requestForDetails(const QString& sourceChannel, const QString& ses emaillist = mAddressBook->findByEmail( email ); - + qDebug("count %d %d ", namelist.count(),emaillist.count() ); //check if we have a match in Namelist and Emaillist - if ((namelist.count() == 0) && (emaillist.count() > 0)) - foundUid == emaillist[0].uid(); + if ((namelist.count() == 0) && (emaillist.count() > 0)) { + foundUid = emaillist[0].uid(); + } else if ((namelist.count() > 0) && (emaillist.count() == 0)) - foundUid == namelist[0].uid(); + foundUid = namelist[0].uid(); else @@ -2071,3 +2072,3 @@ void KABCore::requestForDetails(const QString& sourceChannel, const QString& ses { - foundUid == namelist[i].uid(); + foundUid = namelist[i].uid(); } @@ -2084,2 +2085,3 @@ void KABCore::requestForDetails(const QString& sourceChannel, const QString& ses { + // raise Ka/Pi if it is in the background @@ -2087,7 +2089,8 @@ void KABCore::requestForDetails(const QString& sourceChannel, const QString& ses #ifndef KORG_NODCOP - QCopEnvelope e("QPE/Application/kapi", "raise()"); + //QCopEnvelope e("QPE/Application/kapi", "raise()"); #endif #endif - + mMainWindow->showMaximized(); + mMainWindow-> raise(); |