summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/addressbook/addressbook.cpp13
-rw-r--r--core/pim/addressbook/addressbook.h4
2 files changed, 12 insertions, 5 deletions
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp
index c2cce92..12dc24e 100644
--- a/core/pim/addressbook/addressbook.cpp
+++ b/core/pim/addressbook/addressbook.cpp
@@ -714,9 +714,17 @@ void AddressbookWindow::editPersonal()
{
OContact entry;
+
+ // Switch to personal view if not selected
+ // but take care of the menu, too
+ if ( ! actionPersonal->isOn() ){
+ qWarning("*** ++++");
+ actionPersonal->setOn( true );
+ slotPersonalView();
+ }
+
if ( !abEditor ) {
abEditor = new ContactEditor( entry, this, "editor" );
}
- m_abView->showPersonal( true );
abEditor->setCaption(tr("Edit My Personal Details"));
abEditor->setPersonalView( true );
@@ -729,6 +737,8 @@ void AddressbookWindow::editPersonal()
void AddressbookWindow::slotPersonalView()
{
+ qWarning("slotPersonalView()");
if (!actionPersonal->isOn()) {
// we just turned it off
+ qWarning("slotPersonalView()-> OFF");
setCaption( tr("Contacts") );
actionNew->setEnabled(TRUE);
@@ -743,4 +753,5 @@ void AddressbookWindow::slotPersonalView()
}
+ qWarning("slotPersonalView()-> ON");
// XXX need to disable some QActions.
actionNew->setEnabled(FALSE);
diff --git a/core/pim/addressbook/addressbook.h b/core/pim/addressbook/addressbook.h
index 2bedc0b..69fe2f8 100644
--- a/core/pim/addressbook/addressbook.h
+++ b/core/pim/addressbook/addressbook.h
@@ -100,6 +100,4 @@ private slots:
private:
- // void initFields(); // inititialize our fields...
- // AbLabel *abView();
void populateCategories();
@@ -107,6 +105,4 @@ private:
QPEToolBar *listTools;
QToolButton *deleteButton;
- // QValueList<int> allFields, orderedFields;
- // QStringList slOrderedFields;
enum Panes { paneList=0, paneView, paneEdit };
ContactEditor *abEditor;