author | zautrix <zautrix> | 2005-07-02 09:37:26 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-02 09:37:26 (UTC) |
commit | 98273ae9af4d39181ace21fe3dfade141e5f8afb (patch) (unidiff) | |
tree | 76b538b328f11eb506aee74f4ab9e86ffdef1956 /kaddressbook | |
parent | cf243d3d9faa7d79eb706f6e70c8d01926e9da89 (diff) | |
download | kdepimpi-98273ae9af4d39181ace21fe3dfade141e5f8afb.zip kdepimpi-98273ae9af4d39181ace21fe3dfade141e5f8afb.tar.gz kdepimpi-98273ae9af4d39181ace21fe3dfade141e5f8afb.tar.bz2 |
raise fix
-rw-r--r-- | kaddressbook/kabcore.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index b4e0b07..d5de9cb 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp | |||
@@ -2563,48 +2563,49 @@ void KABCore::requestForNameEmailUidList(const QString& sourceChannel, const QSt | |||
2563 | /* | 2563 | /* |
2564 | { | 2564 | { |
2565 | QCopEnvelope e("QPE/Application/kapi", "callContactdialog()"); | 2565 | QCopEnvelope e("QPE/Application/kapi", "callContactdialog()"); |
2566 | } | 2566 | } |
2567 | */ | 2567 | */ |
2568 | QTimer::singleShot( 1,this, SLOT ( resizeAndCallContactdialog() ) ); | 2568 | QTimer::singleShot( 1,this, SLOT ( resizeAndCallContactdialog() ) ); |
2569 | return; | 2569 | return; |
2570 | } | 2570 | } |
2571 | 2571 | ||
2572 | } else { | 2572 | } else { |
2573 | qDebug("KABCore::requestForNameEmailUidList:: Got invalid uid "); | 2573 | qDebug("KABCore::requestForNameEmailUidList:: Got invalid uid "); |
2574 | } | 2574 | } |
2575 | callContactdialog(); | 2575 | callContactdialog(); |
2576 | //QCopEnvelope e("QPE/Application/kapi", "callContactdialog()"); | 2576 | //QCopEnvelope e("QPE/Application/kapi", "callContactdialog()"); |
2577 | #endif | 2577 | #endif |
2578 | } | 2578 | } |
2579 | void KABCore::resizeAndCallContactdialog() | 2579 | void KABCore::resizeAndCallContactdialog() |
2580 | { | 2580 | { |
2581 | updateMainWindow(); | 2581 | updateMainWindow(); |
2582 | QTimer::singleShot( 10,this, SLOT ( callContactdialog() ) ); | 2582 | QTimer::singleShot( 10,this, SLOT ( callContactdialog() ) ); |
2583 | } | 2583 | } |
2584 | 2584 | ||
2585 | void KABCore::doRingSync() | 2585 | void KABCore::doRingSync() |
2586 | { | 2586 | { |
2587 | topLevelWidget()->raise(); | ||
2587 | syncManager->multiSync( false ); | 2588 | syncManager->multiSync( false ); |
2588 | } | 2589 | } |
2589 | void KABCore::callContactdialog() | 2590 | void KABCore::callContactdialog() |
2590 | { | 2591 | { |
2591 | static bool running = false; | 2592 | static bool running = false; |
2592 | if (running) return; | 2593 | if (running) return; |
2593 | running = true; | 2594 | running = true; |
2594 | QStringList nameList; | 2595 | QStringList nameList; |
2595 | QStringList emailList; | 2596 | QStringList emailList; |
2596 | QStringList uidList; | 2597 | QStringList uidList; |
2597 | qDebug(" KABCore::callContactdialog:DESKTOP WIDTH %d ", QApplication::desktop()->width() ); | 2598 | qDebug(" KABCore::callContactdialog:DESKTOP WIDTH %d ", QApplication::desktop()->width() ); |
2598 | KABC::Addressee::List list = KABC::AddresseeDialog::getAddressees(this); | 2599 | KABC::Addressee::List list = KABC::AddresseeDialog::getAddressees(this); |
2599 | uint i=0; | 2600 | uint i=0; |
2600 | for (i=0; i < list.count(); i++) | 2601 | for (i=0; i < list.count(); i++) |
2601 | { | 2602 | { |
2602 | nameList.append(list[i].realName()); | 2603 | nameList.append(list[i].realName()); |
2603 | emailList.append(list[i].preferredEmail()); | 2604 | emailList.append(list[i].preferredEmail()); |
2604 | uidList.append(list[i].uid()); | 2605 | uidList.append(list[i].uid()); |
2605 | } | 2606 | } |
2606 | QString uid = mEmailSourceUID; | 2607 | QString uid = mEmailSourceUID; |
2607 | //qDebug("%s %s ", sourceChannel.latin1(), uid.latin1()); | 2608 | //qDebug("%s %s ", sourceChannel.latin1(), uid.latin1()); |
2608 | bool res = ExternalAppHandler::instance()->returnNameEmailUidListFromKAPI(mEmailSourceChannel, uid, nameList, emailList, uidList); | 2609 | bool res = ExternalAppHandler::instance()->returnNameEmailUidListFromKAPI(mEmailSourceChannel, uid, nameList, emailList, uidList); |
2609 | running = false; | 2610 | running = false; |
2610 | } | 2611 | } |