summaryrefslogtreecommitdiff
authordrw <drw>2005-02-07 22:08:38 (UTC)
committer drw <drw>2005-02-07 22:08:38 (UTC)
commit2e4fd59ce900490ccbbb6c0f7b2fcd4811ac8a07 (patch) (side-by-side diff)
treedd1c91d19c4e53fea60245e3d4d535ac176ee2c8
parent7631c91d6c495a6c60e87a9ab131280f31ee4c87 (diff)
downloadopie-2e4fd59ce900490ccbbb6c0f7b2fcd4811ac8a07.zip
opie-2e4fd59ce900490ccbbb6c0f7b2fcd4811ac8a07.tar.gz
opie-2e4fd59ce900490ccbbb6c0f7b2fcd4811ac8a07.tar.bz2
Fix contact edit dialog captioning
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/addressbook.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp
index 75e539a..6984501 100644
--- a/core/pim/addressbook/addressbook.cpp
+++ b/core/pim/addressbook/addressbook.cpp
@@ -664,8 +664,12 @@ void AddressbookWindow::editEntry( EntryMode entryMode )
abEditor->setEntry( m_abView -> currentEntry() );
else if ( entryMode == NewEntry )
abEditor->setEntry( entry );
- // other things may change the caption.
- abEditor->setCaption( tr("Edit Address") );
+
+ // Set the dialog caption
+ if ( m_actionPersonal->isOn() )
+ abEditor->setCaption( tr( "Edit My Personal Details" ) );
+ else
+ abEditor->setCaption( tr( "Edit Contact" ) );
// fix the focus...
abEditor->setNameFocus();
@@ -706,10 +710,9 @@ void AddressbookWindow::editPersonal()
abEditor = new ContactEditor( entry, this, "editor" );
}
- abEditor->setCaption(tr("Edit My Personal Details"));
- abEditor->setPersonalView( true );
+ abEditor->setPersonalView( true );
editEntry( EditEntry );
- abEditor->setPersonalView( false );
+ abEditor->setPersonalView( false );
}