author | tux_mike <tux_mike> | 2002-04-02 02:16:45 (UTC) |
---|---|---|
committer | tux_mike <tux_mike> | 2002-04-02 02:16:45 (UTC) |
commit | 44bfa84cc6d9bcd828f0b08c7bf59dde58dd5288 (patch) (unidiff) | |
tree | 75ff5b49b30c27d927f5d170c2d9e60e56af5e5b | |
parent | f830e73250189b0c9ca06df437c04d1c29e81359 (diff) | |
download | opie-44bfa84cc6d9bcd828f0b08c7bf59dde58dd5288.zip opie-44bfa84cc6d9bcd828f0b08c7bf59dde58dd5288.tar.gz opie-44bfa84cc6d9bcd828f0b08c7bf59dde58dd5288.tar.bz2 |
Fixed annoying bug with the City field always being the home city... sorry :)
-rw-r--r-- | core/pim/addressbook/contacteditor.cpp | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/core/pim/addressbook/contacteditor.cpp b/core/pim/addressbook/contacteditor.cpp index 6d92ac3..0e752ca 100644 --- a/core/pim/addressbook/contacteditor.cpp +++ b/core/pim/addressbook/contacteditor.cpp | |||
@@ -528,11 +528,8 @@ void ContactEditor::slotChooser3Change( const QString &textChanged ) { | |||
528 | } | 528 | } |
529 | 529 | ||
530 | void ContactEditor::slotAddressChange( const QString &textChanged ) { | 530 | void ContactEditor::slotAddressChange( const QString &textChanged ) { |
531 | 531 | ||
532 | qDebug((*slBusinessAddress)[0]); | ||
533 | qDebug((*slHomeAddress)[0]); | ||
534 | qDebug(textChanged); | ||
535 | if ( cmbAddress->currentItem() == 0 ) { | 532 | if ( cmbAddress->currentItem() == 0 ) { |
536 | (*slBusinessAddress)[0] = textChanged; | 533 | (*slBusinessAddress)[0] = textChanged; |
537 | } else { | 534 | } else { |
538 | (*slHomeAddress)[0] = textChanged; | 535 | (*slHomeAddress)[0] = textChanged; |
@@ -540,12 +537,8 @@ void ContactEditor::slotAddressChange( const QString &textChanged ) { | |||
540 | } | 537 | } |
541 | 538 | ||
542 | void ContactEditor::slotAddress2Change( const QString &textChanged ) { | 539 | void ContactEditor::slotAddress2Change( const QString &textChanged ) { |
543 | 540 | ||
544 | qDebug((*slBusinessAddress)[1]); | ||
545 | qDebug((*slHomeAddress)[1]); | ||
546 | qDebug(textChanged); | ||
547 | |||
548 | if ( cmbAddress->currentItem() == 0 ) { | 541 | if ( cmbAddress->currentItem() == 0 ) { |
549 | (*slBusinessAddress)[1] = textChanged; | 542 | (*slBusinessAddress)[1] = textChanged; |
550 | } else { | 543 | } else { |
551 | (*slHomeAddress)[1] = textChanged; | 544 | (*slHomeAddress)[1] = textChanged; |
@@ -553,11 +546,8 @@ void ContactEditor::slotAddress2Change( const QString &textChanged ) { | |||
553 | } | 546 | } |
554 | 547 | ||
555 | void ContactEditor::slotPOBoxChange( const QString &textChanged ) { | 548 | void ContactEditor::slotPOBoxChange( const QString &textChanged ) { |
556 | 549 | ||
557 | qDebug((*slBusinessAddress)[2]); | ||
558 | qDebug((*slHomeAddress)[2]); | ||
559 | qDebug(textChanged); | ||
560 | if ( cmbAddress->currentItem() == 0 ) { | 550 | if ( cmbAddress->currentItem() == 0 ) { |
561 | (*slBusinessAddress)[2] = textChanged; | 551 | (*slBusinessAddress)[2] = textChanged; |
562 | } else { | 552 | } else { |
563 | (*slHomeAddress)[2] = textChanged; | 553 | (*slHomeAddress)[2] = textChanged; |
@@ -565,11 +555,8 @@ void ContactEditor::slotPOBoxChange( const QString &textChanged ) { | |||
565 | } | 555 | } |
566 | 556 | ||
567 | void ContactEditor::slotCityChange( const QString &textChanged ) { | 557 | void ContactEditor::slotCityChange( const QString &textChanged ) { |
568 | 558 | ||
569 | qDebug((*slBusinessAddress)[3]); | ||
570 | qDebug((*slHomeAddress)[3]); | ||
571 | qDebug(textChanged); | ||
572 | if ( cmbAddress->currentItem() == 0 ) { | 559 | if ( cmbAddress->currentItem() == 0 ) { |
573 | (*slBusinessAddress)[3] = textChanged; | 560 | (*slBusinessAddress)[3] = textChanged; |
574 | } else { | 561 | } else { |
575 | (*slHomeAddress)[3] = textChanged; | 562 | (*slHomeAddress)[3] = textChanged; |
@@ -578,11 +565,8 @@ void ContactEditor::slotCityChange( const QString &textChanged ) { | |||
578 | 565 | ||
579 | void ContactEditor::slotStateChange( const QString &textChanged ) { | 566 | void ContactEditor::slotStateChange( const QString &textChanged ) { |
580 | 567 | ||
581 | 568 | ||
582 | qDebug((*slBusinessAddress)[4]); | ||
583 | qDebug((*slHomeAddress)[4]); | ||
584 | qDebug(textChanged); | ||
585 | if ( cmbAddress->currentItem() == 0 ) { | 569 | if ( cmbAddress->currentItem() == 0 ) { |
586 | (*slBusinessAddress)[4] = textChanged; | 570 | (*slBusinessAddress)[4] = textChanged; |
587 | } else { | 571 | } else { |
588 | (*slHomeAddress)[4] = textChanged; | 572 | (*slHomeAddress)[4] = textChanged; |
@@ -590,11 +574,8 @@ void ContactEditor::slotStateChange( const QString &textChanged ) { | |||
590 | } | 574 | } |
591 | 575 | ||
592 | void ContactEditor::slotZipChange( const QString &textChanged ) { | 576 | void ContactEditor::slotZipChange( const QString &textChanged ) { |
593 | 577 | ||
594 | qDebug((*slBusinessAddress)[5]); | ||
595 | qDebug((*slHomeAddress)[5]); | ||
596 | qDebug(textChanged); | ||
597 | if ( cmbAddress->currentItem() == 0 ) { | 578 | if ( cmbAddress->currentItem() == 0 ) { |
598 | (*slBusinessAddress)[5] = textChanged; | 579 | (*slBusinessAddress)[5] = textChanged; |
599 | } else { | 580 | } else { |
600 | (*slHomeAddress)[5] = textChanged; | 581 | (*slHomeAddress)[5] = textChanged; |
@@ -602,11 +583,8 @@ void ContactEditor::slotZipChange( const QString &textChanged ) { | |||
602 | } | 583 | } |
603 | 584 | ||
604 | void ContactEditor::slotCountryChange( const QString &textChanged ) { | 585 | void ContactEditor::slotCountryChange( const QString &textChanged ) { |
605 | 586 | ||
606 | qDebug((*slBusinessAddress)[6]); | ||
607 | qDebug((*slHomeAddress)[6]); | ||
608 | qDebug(textChanged); | ||
609 | if ( cmbAddress->currentItem() == 0 ) { | 587 | if ( cmbAddress->currentItem() == 0 ) { |
610 | (*slBusinessAddress)[6] = textChanged; | 588 | (*slBusinessAddress)[6] = textChanged; |
611 | } else { | 589 | } else { |
612 | (*slHomeAddress)[6] = textChanged; | 590 | (*slHomeAddress)[6] = textChanged; |
@@ -632,18 +610,8 @@ void ContactEditor::slotCmbChooser3Change( int index ) { | |||
632 | } | 610 | } |
633 | 611 | ||
634 | void ContactEditor::slotAddressTypeChange( int index ) { | 612 | void ContactEditor::slotAddressTypeChange( int index ) { |
635 | 613 | ||
636 | qDebug((*slBusinessAddress)[0]); | ||
637 | qDebug((*slBusinessAddress)[1]); | ||
638 | qDebug((*slBusinessAddress)[2]); | ||
639 | qDebug((*slBusinessAddress)[3]); | ||
640 | qDebug((*slBusinessAddress)[4]); | ||
641 | qDebug((*slBusinessAddress)[5]); | ||
642 | qDebug((*slBusinessAddress)[6]); | ||
643 | |||
644 | |||
645 | |||
646 | if ( index == 0 ) { | 614 | if ( index == 0 ) { |
647 | 615 | ||
648 | txtAddress->setText( (*slBusinessAddress)[0] ); | 616 | txtAddress->setText( (*slBusinessAddress)[0] ); |
649 | //txtAddress2->setText( (*slBusinessAddress)[1] ); | 617 | //txtAddress2->setText( (*slBusinessAddress)[1] ); |
@@ -1001,9 +969,9 @@ void ContactEditor::setEntry( const Contact &entry ) { | |||
1001 | } | 969 | } |
1002 | */ | 970 | */ |
1003 | if (hasCity) { | 971 | if (hasCity) { |
1004 | (*slHomeAddress)[3] = ent.homeCity(); | 972 | (*slHomeAddress)[3] = ent.homeCity(); |
1005 | (*slBusinessAddress)[3] = ent.homeCity(); | 973 | (*slBusinessAddress)[3] = ent.businessCity(); |
1006 | } | 974 | } |
1007 | 975 | ||
1008 | if (hasState) { | 976 | if (hasState) { |
1009 | (*slHomeAddress)[4] = ent.homeState(); | 977 | (*slHomeAddress)[4] = ent.homeState(); |