From bf664c505e66f54dd03c3518386fdeab43108e56 Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 27 Jun 2005 20:33:47 +0000 Subject: fixes --- (limited to 'kaddressbook') diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index b107e2d..3715786 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp @@ -2544,11 +2544,12 @@ 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 ); qDebug("UID %s ", uid.latin1()); @@ -2576,12 +2577,15 @@ void KABCore::requestForNameEmailUidList(const QString& sourceChannel, const QSt void KABCore::resizeAndCallContactdialog() { updateMainWindow(); - QTimer::singleShot( 100,this, SLOT ( callContactdialog() ) ); + QTimer::singleShot( 10,this, SLOT ( callContactdialog() ) ); } void KABCore::callContactdialog() { - QStringList nameList; + static bool running = false; + if (running) return; + running = true; + QStringList nameList; QStringList emailList; QStringList uidList; qDebug(" KABCore::callContactdialog:DESKTOP WIDTH %d ", QApplication::desktop()->width() ); @@ -2596,7 +2600,7 @@ void KABCore::callContactdialog() QString uid = mEmailSourceUID; //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 * to put them into the calendar. -- cgit v0.9.0.2