summaryrefslogtreecommitdiff
path: root/core
authoreilers <eilers>2002-12-16 14:24:22 (UTC)
committer eilers <eilers>2002-12-16 14:24:22 (UTC)
commite555812af7b4183a9b6d276d0b9ac7f01b62eb2f (patch) (side-by-side diff)
tree471979f5d8c35c9eddc89479f223da14140c0f14 /core
parentd1d849bab2d54b1e9144bca1f30786882be9a464 (diff)
downloadopie-e555812af7b4183a9b6d276d0b9ac7f01b62eb2f.zip
opie-e555812af7b4183a9b6d276d0b9ac7f01b62eb2f.tar.gz
opie-e555812af7b4183a9b6d276d0b9ac7f01b62eb2f.tar.bz2
Improvement of previous bugfix
Diffstat (limited to 'core') (more/less context) (ignore 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
@@ -715,2 +715,11 @@ 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 ) {
@@ -719,3 +728,2 @@ void AddressbookWindow::editPersonal()
- m_abView->showPersonal( true );
abEditor->setCaption(tr("Edit My Personal Details"));
@@ -730,4 +738,6 @@ void AddressbookWindow::slotPersonalView()
{
+ qWarning("slotPersonalView()");
if (!actionPersonal->isOn()) {
// we just turned it off
+ qWarning("slotPersonalView()-> OFF");
setCaption( tr("Contacts") );
@@ -744,2 +754,3 @@ void AddressbookWindow::slotPersonalView()
+ qWarning("slotPersonalView()-> ON");
// XXX need to disable some QActions.
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
@@ -101,4 +101,2 @@ private slots:
private:
- // void initFields(); // inititialize our fields...
- // AbLabel *abView();
void populateCategories();
@@ -108,4 +106,2 @@ private:
QToolButton *deleteButton;
- // QValueList<int> allFields, orderedFields;
- // QStringList slOrderedFields;
enum Panes { paneList=0, paneView, paneEdit };