-rw-r--r-- | kaddressbook/kabcore.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index b107e2d..3715786 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp @@ -2545,9 +2545,10 @@ void KABCore::configureResources() void KABCore::requestForNameEmailUidList(const QString& sourceChannel, const QString& uid) { - + qDebug("KABCore::requestForNameEmailUidList "); bool ok = false; mEmailSourceChannel = sourceChannel; mEmailSourceUID = uid; - callContactdialog(); + QTimer::singleShot( 10,this, SLOT ( callContactdialog() ) ); + //callContactdialog(); #if 0 int wid = uid.toInt( &ok ); @@ -2577,9 +2578,12 @@ void KABCore::resizeAndCallContactdialog() { updateMainWindow(); - QTimer::singleShot( 100,this, SLOT ( callContactdialog() ) ); + QTimer::singleShot( 10,this, SLOT ( callContactdialog() ) ); } void KABCore::callContactdialog() { + static bool running = false; + if (running) return; + running = true; QStringList nameList; QStringList emailList; @@ -2597,5 +2601,5 @@ void KABCore::callContactdialog() //qDebug("%s %s ", sourceChannel.latin1(), uid.latin1()); bool res = ExternalAppHandler::instance()->returnNameEmailUidListFromKAPI(mEmailSourceChannel, uid, nameList, emailList, uidList); - + running = false; } /* this method will be called through the QCop interface from Ko/Pi to select birthdays |