From 2e4fd59ce900490ccbbb6c0f7b2fcd4811ac8a07 Mon Sep 17 00:00:00 2001 From: drw Date: Mon, 07 Feb 2005 22:08:38 +0000 Subject: Fix contact edit dialog captioning --- 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 ); } -- cgit v0.9.0.2