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) (side-by-side diff) | |
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 ) { } void ContactEditor::slotAddressChange( const QString &textChanged ) { - qDebug((*slBusinessAddress)[0]); - qDebug((*slHomeAddress)[0]); - qDebug(textChanged); if ( cmbAddress->currentItem() == 0 ) { (*slBusinessAddress)[0] = textChanged; } else { (*slHomeAddress)[0] = textChanged; @@ -540,12 +537,8 @@ void ContactEditor::slotAddressChange( const QString &textChanged ) { } void ContactEditor::slotAddress2Change( const QString &textChanged ) { - qDebug((*slBusinessAddress)[1]); - qDebug((*slHomeAddress)[1]); - qDebug(textChanged); - if ( cmbAddress->currentItem() == 0 ) { (*slBusinessAddress)[1] = textChanged; } else { (*slHomeAddress)[1] = textChanged; @@ -553,11 +546,8 @@ void ContactEditor::slotAddress2Change( const QString &textChanged ) { } void ContactEditor::slotPOBoxChange( const QString &textChanged ) { - qDebug((*slBusinessAddress)[2]); - qDebug((*slHomeAddress)[2]); - qDebug(textChanged); if ( cmbAddress->currentItem() == 0 ) { (*slBusinessAddress)[2] = textChanged; } else { (*slHomeAddress)[2] = textChanged; @@ -565,11 +555,8 @@ void ContactEditor::slotPOBoxChange( const QString &textChanged ) { } void ContactEditor::slotCityChange( const QString &textChanged ) { - qDebug((*slBusinessAddress)[3]); - qDebug((*slHomeAddress)[3]); - qDebug(textChanged); if ( cmbAddress->currentItem() == 0 ) { (*slBusinessAddress)[3] = textChanged; } else { (*slHomeAddress)[3] = textChanged; @@ -578,11 +565,8 @@ void ContactEditor::slotCityChange( const QString &textChanged ) { void ContactEditor::slotStateChange( const QString &textChanged ) { - qDebug((*slBusinessAddress)[4]); - qDebug((*slHomeAddress)[4]); - qDebug(textChanged); if ( cmbAddress->currentItem() == 0 ) { (*slBusinessAddress)[4] = textChanged; } else { (*slHomeAddress)[4] = textChanged; @@ -590,11 +574,8 @@ void ContactEditor::slotStateChange( const QString &textChanged ) { } void ContactEditor::slotZipChange( const QString &textChanged ) { - qDebug((*slBusinessAddress)[5]); - qDebug((*slHomeAddress)[5]); - qDebug(textChanged); if ( cmbAddress->currentItem() == 0 ) { (*slBusinessAddress)[5] = textChanged; } else { (*slHomeAddress)[5] = textChanged; @@ -602,11 +583,8 @@ void ContactEditor::slotZipChange( const QString &textChanged ) { } void ContactEditor::slotCountryChange( const QString &textChanged ) { - qDebug((*slBusinessAddress)[6]); - qDebug((*slHomeAddress)[6]); - qDebug(textChanged); if ( cmbAddress->currentItem() == 0 ) { (*slBusinessAddress)[6] = textChanged; } else { (*slHomeAddress)[6] = textChanged; @@ -632,18 +610,8 @@ void ContactEditor::slotCmbChooser3Change( int index ) { } void ContactEditor::slotAddressTypeChange( int index ) { - qDebug((*slBusinessAddress)[0]); - qDebug((*slBusinessAddress)[1]); - qDebug((*slBusinessAddress)[2]); -qDebug((*slBusinessAddress)[3]); -qDebug((*slBusinessAddress)[4]); -qDebug((*slBusinessAddress)[5]); -qDebug((*slBusinessAddress)[6]); - - - if ( index == 0 ) { txtAddress->setText( (*slBusinessAddress)[0] ); //txtAddress2->setText( (*slBusinessAddress)[1] ); @@ -1001,9 +969,9 @@ void ContactEditor::setEntry( const Contact &entry ) { } */ if (hasCity) { (*slHomeAddress)[3] = ent.homeCity(); - (*slBusinessAddress)[3] = ent.homeCity(); + (*slBusinessAddress)[3] = ent.businessCity(); } if (hasState) { (*slHomeAddress)[4] = ent.homeState(); |