summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--bin/kdepim/WhatsNew.txt2
-rw-r--r--kabc/addresseedialog.cpp7
-rw-r--r--kaddressbook/kabcore.cpp12
3 files changed, 16 insertions, 5 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt
index 21664de..b6472d7 100644
--- a/bin/kdepim/WhatsNew.txt
+++ b/bin/kdepim/WhatsNew.txt
@@ -5,7 +5,9 @@ Info about the changes in new versions of KDE-Pim/Pi
KO/Pi:
Importing Birthdays will now create another file resource "Birthdays" and import the birthday data from KA/Pi into that file.
+When a multidayevent is selected in monthview all occurences of this event in the monthview are now hightlighted.
KA/Pi:
Fixed two problems in csv export.
+Fixed problems when calling the contact selection dialog from KO/Pi or OM/Pi.
********** VERSION 2.1.9 ************
diff --git a/kabc/addresseedialog.cpp b/kabc/addresseedialog.cpp
index 9197850..0cf75a0 100644
--- a/kabc/addresseedialog.cpp
+++ b/kabc/addresseedialog.cpp
@@ -64,4 +64,5 @@ AddresseeDialog::AddresseeDialog( QWidget *parent, bool multiple ) :
{
qDebug("NEW AddresseeDialog ");
+
QWidget *topWidget = plainPage();
@@ -325,6 +326,9 @@ Addressee AddresseeDialog::getAddressee( QWidget *parent )
Addressee::List AddresseeDialog::getAddressees( QWidget *parent )
{
- AddresseeDialog *dlg = new AddresseeDialog( parent, true );
Addressee::List addressees;
+ static bool running = false;
+ if ( running ) return addressees;
+ running = true;
+ AddresseeDialog *dlg = new AddresseeDialog( parent, true );
static int geoX = 0;
static int geoY = 0;
@@ -355,4 +359,5 @@ Addressee::List AddresseeDialog::getAddressees( QWidget *parent )
delete dlg;
+ running = false;
return addressees;
}
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