summaryrefslogtreecommitdiffabout
path: root/kabc
authorzautrix <zautrix>2005-06-27 20:33:47 (UTC)
committer zautrix <zautrix>2005-06-27 20:33:47 (UTC)
commitbf664c505e66f54dd03c3518386fdeab43108e56 (patch) (side-by-side diff)
tree2e41ba8c43b8126f643c94ceecd1bcf83800cd43 /kabc
parentd730e4b5cd81965f224b69efcc91dd58253f0b98 (diff)
downloadkdepimpi-bf664c505e66f54dd03c3518386fdeab43108e56.zip
kdepimpi-bf664c505e66f54dd03c3518386fdeab43108e56.tar.gz
kdepimpi-bf664c505e66f54dd03c3518386fdeab43108e56.tar.bz2
fixes
Diffstat (limited to 'kabc') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/addresseedialog.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/kabc/addresseedialog.cpp b/kabc/addresseedialog.cpp
index 9197850..0cf75a0 100644
--- a/kabc/addresseedialog.cpp
+++ b/kabc/addresseedialog.cpp
@@ -62,8 +62,9 @@ AddresseeDialog::AddresseeDialog( QWidget *parent, bool multiple ) :
KDialogBase( KDialogBase::Plain, i18n("Select Addressee"),
Ok|Cancel, No, parent ), mMultiple( multiple )
{
qDebug("NEW AddresseeDialog ");
+
QWidget *topWidget = plainPage();
QBoxLayout *topLayout = new QHBoxLayout( topWidget );
@@ -323,10 +324,13 @@ 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;
static int geoW = 0;
static int geoH = 0;
@@ -353,8 +357,9 @@ Addressee::List AddresseeDialog::getAddressees( QWidget *parent )
addressees = dlg->addressees();
}
delete dlg;
+ running = false;
return addressees;
}
void AddresseeDialog::addressBookChanged()