author | eilers <eilers> | 2003-01-13 17:38:53 (UTC) |
---|---|---|
committer | eilers <eilers> | 2003-01-13 17:38:53 (UTC) |
commit | 90706ff3edbf0c30856bb9786e69a6d3a0e0867a (patch) (unidiff) | |
tree | 19839cdc38a737724a9228f421cd291cbe45baa1 /core/pim/addressbook/contacteditor.cpp | |
parent | 6bae3504f8eacd604bc6d543d3eb09f996221dcc (diff) | |
download | opie-90706ff3edbf0c30856bb9786e69a6d3a0e0867a.zip opie-90706ff3edbf0c30856bb9786e69a6d3a0e0867a.tar.gz opie-90706ff3edbf0c30856bb9786e69a6d3a0e0867a.tar.bz2 |
Removed nonsense which corrupted the business phone data
Diffstat (limited to 'core/pim/addressbook/contacteditor.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/contacteditor.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/pim/addressbook/contacteditor.cpp b/core/pim/addressbook/contacteditor.cpp index 37e3a54..d14ac51 100644 --- a/core/pim/addressbook/contacteditor.cpp +++ b/core/pim/addressbook/contacteditor.cpp | |||
@@ -638,26 +638,27 @@ void ContactEditor::init() { | |||
638 | this, SLOT(slotCmbChooser4Change(int)) ); | 638 | this, SLOT(slotCmbChooser4Change(int)) ); |
639 | connect( cmbAddress, SIGNAL(activated(int)), | 639 | connect( cmbAddress, SIGNAL(activated(int)), |
640 | this, SLOT(slotAddressTypeChange(int)) ); | 640 | this, SLOT(slotAddressTypeChange(int)) ); |
641 | 641 | ||
642 | new QPEDialogListener(this); | 642 | new QPEDialogListener(this); |
643 | 643 | ||
644 | setPersonalView ( m_personalView ); | 644 | setPersonalView ( m_personalView ); |
645 | } | 645 | } |
646 | 646 | ||
647 | void ContactEditor::defaultEmailChanged(int i){ | 647 | void ContactEditor::defaultEmailChanged(int i){ |
648 | qDebug("defaultEmailChanged"); | 648 | qDebug("defaultEmailChanged"); |
649 | 649 | ||
650 | int index = cmbChooserField1->currentItem(); | 650 | // was sollte das ? (se) |
651 | slChooserValues[index] = cmbDefaultEmail->text(i); | 651 | // int index = cmbChooserField1->currentItem(); |
652 | // slChooserValues[index] = cmbDefaultEmail->text(i); | ||
652 | 653 | ||
653 | defaultEmail = cmbDefaultEmail->text(i); | 654 | defaultEmail = cmbDefaultEmail->text(i); |
654 | qDebug ("Changed to: %s", defaultEmail.latin1()); | 655 | qDebug ("Changed to: %s", defaultEmail.latin1()); |
655 | 656 | ||
656 | } | 657 | } |
657 | 658 | ||
658 | void ContactEditor::populateDefaultEmailCmb(){ | 659 | void ContactEditor::populateDefaultEmailCmb(){ |
659 | 660 | ||
660 | // if the default-email combo was not selected and therfore not created | 661 | // if the default-email combo was not selected and therfore not created |
661 | // we get a lot of trouble.. Therfore create an invisible one.. | 662 | // we get a lot of trouble.. Therfore create an invisible one.. |
662 | if ( !cmbDefaultEmail ){ | 663 | if ( !cmbDefaultEmail ){ |
663 | cmbDefaultEmail = new QComboBox(this); | 664 | cmbDefaultEmail = new QComboBox(this); |
@@ -890,25 +891,24 @@ void ContactEditor::slotZipChange( const QString &textChanged ) { | |||
890 | void ContactEditor::slotCountryChange( const QString &textChanged ) { | 891 | void ContactEditor::slotCountryChange( const QString &textChanged ) { |
891 | 892 | ||
892 | if ( cmbAddress->currentItem() == 0 ) { | 893 | if ( cmbAddress->currentItem() == 0 ) { |
893 | slBusinessAddress[6] = textChanged; | 894 | slBusinessAddress[6] = textChanged; |
894 | } else { | 895 | } else { |
895 | slHomeAddress[6] = textChanged; | 896 | slHomeAddress[6] = textChanged; |
896 | } | 897 | } |
897 | } | 898 | } |
898 | 899 | ||
899 | 900 | ||
900 | void ContactEditor::slotCmbChooser1Change( int index ) { | 901 | void ContactEditor::slotCmbChooser1Change( int index ) { |
901 | qWarning("ContactEditor::slotCmbChooser1Change( %d )", index); | 902 | qWarning("ContactEditor::slotCmbChooser1Change( %d )", index); |
902 | |||
903 | if ( !cmbChooserChange( cmbChooserField1->currentItem(), txtChooserField1, 1) ){ | 903 | if ( !cmbChooserChange( cmbChooserField1->currentItem(), txtChooserField1, 1) ){ |
904 | 904 | ||
905 | txtChooserField1->setText( slChooserValues[index] ); | 905 | txtChooserField1->setText( slChooserValues[index] ); |
906 | txtChooserField1->setFocus(); | 906 | txtChooserField1->setFocus(); |
907 | 907 | ||
908 | } | 908 | } |
909 | 909 | ||
910 | } | 910 | } |
911 | 911 | ||
912 | void ContactEditor::slotCmbChooser2Change( int index ) { | 912 | void ContactEditor::slotCmbChooser2Change( int index ) { |
913 | qWarning("ContactEditor::slotCmbChooser2Change( %d )", index); | 913 | qWarning("ContactEditor::slotCmbChooser2Change( %d )", index); |
914 | 914 | ||
@@ -1474,24 +1474,25 @@ void ContactEditor::updateDatePicker() | |||
1474 | birthdayButton->setText( tr ("Unknown") ); | 1474 | birthdayButton->setText( tr ("Unknown") ); |
1475 | 1475 | ||
1476 | if ( !ent.anniversary().isNull() ){ | 1476 | if ( !ent.anniversary().isNull() ){ |
1477 | anniversaryButton->setText( TimeString::numberDateString( ent.anniversary() ) ); | 1477 | anniversaryButton->setText( TimeString::numberDateString( ent.anniversary() ) ); |
1478 | anniversaryPicker->setDate( ent.anniversary() ); | 1478 | anniversaryPicker->setDate( ent.anniversary() ); |
1479 | } else | 1479 | } else |
1480 | anniversaryButton->setText( tr ("Unknown") ); | 1480 | anniversaryButton->setText( tr ("Unknown") ); |
1481 | 1481 | ||
1482 | } | 1482 | } |
1483 | 1483 | ||
1484 | void ContactEditor::saveEntry() { | 1484 | void ContactEditor::saveEntry() { |
1485 | 1485 | ||
1486 | |||
1486 | if ( useFullName ) { | 1487 | if ( useFullName ) { |
1487 | txtFirstName->setText( parseName( txtFullName->text(), NAME_F ) ); | 1488 | txtFirstName->setText( parseName( txtFullName->text(), NAME_F ) ); |
1488 | txtMiddleName->setText( parseName( txtFullName->text(), NAME_M ) ); | 1489 | txtMiddleName->setText( parseName( txtFullName->text(), NAME_M ) ); |
1489 | txtLastName->setText( parseName( txtFullName->text(), NAME_L ) ); | 1490 | txtLastName->setText( parseName( txtFullName->text(), NAME_L ) ); |
1490 | txtSuffix->setText( parseName( txtFullName->text(), NAME_S ) ); | 1491 | txtSuffix->setText( parseName( txtFullName->text(), NAME_S ) ); |
1491 | 1492 | ||
1492 | useFullName = false; | 1493 | useFullName = false; |
1493 | } | 1494 | } |
1494 | 1495 | ||
1495 | ent.setFirstName( txtFirstName->text() ); | 1496 | ent.setFirstName( txtFirstName->text() ); |
1496 | ent.setLastName( txtLastName->text() ); | 1497 | ent.setLastName( txtLastName->text() ); |
1497 | ent.setMiddleName( txtMiddleName->text() ); | 1498 | ent.setMiddleName( txtMiddleName->text() ); |