Summary: | Kopete forgets Display Name when going Back in Wizard | ||
---|---|---|---|
Product: | [Applications] kopete | Reporter: | Rob Kaper <webmaster> |
Component: | general | Assignee: | Kopete Developers <kopete-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 0.8.0 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Rob Kaper
2004-02-13 07:23:40 UTC
I'm on it... CVS commit by lilachaze: Two fixes to the AddContactWizard: 1) When going back to the page with display name, don't erase it 2) When going back to start, don't forget KAB contact and subsequently break CCMAIL: 75128@bugs.kde.org M +4 -11 addcontactwizard.cpp 1.37 --- kdenetwork/kopete/kopete/addcontactwizard/addcontactwizard.cpp #1.36:1.37 @@ -198,4 +198,7 @@ void AddContactWizard::slotAddresseeList // enable next if a valid addressee is selected setNextEnabled( selectAddressee, addressee ? addressee->isSelected() : false ); + + if ( KABC::AddresseeItem* i = static_cast<KABC::AddresseeItem *>( addressee ) ) + mDisplayName->setText( i->addressee().realName() ); } @@ -352,5 +355,5 @@ void AddContactWizard::showPage( QWidget if ( page == intro ) { - if ( chkAddressee->isChecked() ) // We must check this as we might be showing this page because the back button was pressed + if ( chkAddressee->isChecked() && addresseeListView->firstChild() == 0 ) // We must check this as we might be showing this page because the back button was pressed { // Get a reference to the address book @@ -365,14 +368,4 @@ void AddContactWizard::showPage( QWidget } } - if ( page == selectGroup ) - { - if ( addresseeListView->isEnabled() ) - { - if ( KABC::AddresseeItem* i = static_cast<KABC::AddresseeItem *>( addresseeListView->selectedItem() ) ) - mDisplayName->setText( i->addressee().realName() ); - else - mDisplayName->setText( QString::null ); - } - } QWizard::showPage( page ); } CVS commit by lilachaze: Two fixes to the AddContactWizard: [BACKPORT] 1) When going back to the page with display name, don't erase it 2) When going back to start, don't forget KAB contact and subsequently break CCMAIL: 75128-done@bugs.kde.org M +4 -11 addcontactwizard.cpp 1.36.2.1 --- kdenetwork/kopete/kopete/addcontactwizard/addcontactwizard.cpp #1.36:1.36.2.1 @@ -198,4 +198,7 @@ void AddContactWizard::slotAddresseeList // enable next if a valid addressee is selected setNextEnabled( selectAddressee, addressee ? addressee->isSelected() : false ); + + if ( KABC::AddresseeItem* i = static_cast<KABC::AddresseeItem *>( addressee ) ) + mDisplayName->setText( i->addressee().realName() ); } @@ -352,5 +355,5 @@ void AddContactWizard::showPage( QWidget if ( page == intro ) { - if ( chkAddressee->isChecked() ) // We must check this as we might be showing this page because the back button was pressed + if ( chkAddressee->isChecked() && addresseeListView->firstChild() == 0 ) // We must check this as we might be showing this page because the back button was pressed { // Get a reference to the address book @@ -365,14 +368,4 @@ void AddContactWizard::showPage( QWidget } } - if ( page == selectGroup ) - { - if ( addresseeListView->isEnabled() ) - { - if ( KABC::AddresseeItem* i = static_cast<KABC::AddresseeItem *>( addresseeListView->selectedItem() ) ) - mDisplayName->setText( i->addressee().realName() ); - else - mDisplayName->setText( QString::null ); - } - } QWizard::showPage( page ); } |