-rw-r--r-- | kaddressbook/kabcore.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index b107e2d..3715786 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp @@ -2546,3 +2546,3 @@ void KABCore::requestForNameEmailUidList(const QString& sourceChannel, const QSt { - + qDebug("KABCore::requestForNameEmailUidList "); bool ok = false; @@ -2550,3 +2550,4 @@ void KABCore::requestForNameEmailUidList(const QString& sourceChannel, const QSt mEmailSourceUID = uid; - callContactdialog(); + QTimer::singleShot( 10,this, SLOT ( callContactdialog() ) ); + //callContactdialog(); #if 0 @@ -2578,3 +2579,3 @@ void KABCore::resizeAndCallContactdialog() updateMainWindow(); - QTimer::singleShot( 100,this, SLOT ( callContactdialog() ) ); + QTimer::singleShot( 10,this, SLOT ( callContactdialog() ) ); } @@ -2583,3 +2584,6 @@ void KABCore::callContactdialog() { - QStringList nameList; + static bool running = false; + if (running) return; + running = true; + QStringList nameList; QStringList emailList; @@ -2598,3 +2602,3 @@ void KABCore::callContactdialog() bool res = ExternalAppHandler::instance()->returnNameEmailUidListFromKAPI(mEmailSourceChannel, uid, nameList, emailList, uidList); - + running = false; } |