author | cniehaus <cniehaus> | 2002-12-13 16:19:10 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-12-13 16:19:10 (UTC) |
commit | c8383e3b2e83631f68ee93173422e83746be695f (patch) (side-by-side diff) | |
tree | 0550567844d620155d11dd31c1c0db50ba2a9b5e | |
parent | 33513c771164337da46c65f379c98b06adb6f704 (diff) | |
download | opie-c8383e3b2e83631f68ee93173422e83746be695f.zip opie-c8383e3b2e83631f68ee93173422e83746be695f.tar.gz opie-c8383e3b2e83631f68ee93173422e83746be695f.tar.bz2 |
have overseen one
-rw-r--r-- | core/pim/addressbook/addressbook.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp index 5ce90a9..30fa85b 100644 --- a/core/pim/addressbook/addressbook.cpp +++ b/core/pim/addressbook/addressbook.cpp @@ -338,65 +338,65 @@ void AddressbookWindow::setDocument( const QString &filename ) 0, // Enter == button 0 2 ) ) { // Escape == button 2 case 0: qWarning("YES clicked"); break; case 1: qWarning("NO clicked"); return; break; } } OContactAccessBackend* vcard_backend = new OContactAccessBackend_VCard( QString::null, filename ); OContactAccess* access = new OContactAccess ( "addressbook", QString::null , vcard_backend, true ); OContactAccess::List allList = access->allRecords(); qWarning( "Found number of contacts in File: %d", allList.count() ); if ( !allList.count() ) { QMessageBox::information( this, "Import VCard", "It was impossible to import the VCard.\n" "The VCard may be corrupted!" ); } bool doAsk = true; OContactAccess::List::Iterator it; for ( it = allList.begin(); it != allList.end(); ++it ){ qWarning("Adding Contact from: %s", (*it).fullName().latin1() ); if ( doAsk ){ switch( QMessageBox::information( this, tr ( "Add Contact?" ), tr( "Do you really want add contact for \n%1?" ) .arg( (*it).fullName().latin1() ), - tr( "&Yes" ), tr( "&No" ), tr( "&AllYes"), + tr( "&Yes" ), tr( "&No" ), tr( "&All Yes"), 0, // Enter == button 0 2 ) ) { // Escape == button 2 case 0: qWarning("YES clicked"); m_abView->addEntry( *it ); break; case 1: qWarning("NO clicked"); break; case 2: qWarning("YesAll clicked"); doAsk = false; break; } }else m_abView->addEntry( *it ); } delete access; } void AddressbookWindow::resizeEvent( QResizeEvent *e ) { QMainWindow::resizeEvent( e ); } AddressbookWindow::~AddressbookWindow() { ToolBarDock dock; |