-rw-r--r-- | kabc/addresseedialog.cpp | 7 |
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 @@ -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; } |