Diffstat (limited to 'core/pim/today/plugins/addressbook/addresspluginwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/today/plugins/addressbook/addresspluginwidget.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp index d76a29a..df7c5e1 100644 --- a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp +++ b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp | |||
@@ -21,29 +21,24 @@ | |||
21 | #include <opie2/odebug.h> | 21 | #include <opie2/odebug.h> |
22 | #include <opie2/opimcontact.h> | 22 | #include <opie2/opimcontact.h> |
23 | 23 | ||
24 | #include <qpe/config.h> | 24 | #include <qpe/config.h> |
25 | 25 | ||
26 | AddressBookPluginWidget::AddressBookPluginWidget( QWidget *parent, const char* name ) | 26 | AddressBookPluginWidget::AddressBookPluginWidget( QWidget *parent, const char* name ) |
27 | : QWidget( parent, name ) { | 27 | : QWidget( parent, name ) { |
28 | 28 | ||
29 | addressLabel = 0l; | 29 | addressLabel = 0l; |
30 | m_contactdb = 0l; | 30 | m_contactdb = 0l; |
31 | layoutTodo = 0l; | 31 | layoutTodo = 0l; |
32 | 32 | ||
33 | // Hä ? Nonsense ! (se) | ||
34 | if ( m_contactdb ) { | ||
35 | delete m_contactdb; | ||
36 | } | ||
37 | |||
38 | m_contactdb = new Opie::OPimContactAccess("addressplugin"); | 33 | m_contactdb = new Opie::OPimContactAccess("addressplugin"); |
39 | 34 | ||
40 | connect( m_contactdb, SIGNAL( signalChanged(const Opie::OPimContactAccess*) ), | 35 | connect( m_contactdb, SIGNAL( signalChanged(const Opie::OPimContactAccess*) ), |
41 | this, SLOT( refresh(const Opie::OPimContactAccess*) ) ); | 36 | this, SLOT( refresh(const Opie::OPimContactAccess*) ) ); |
42 | 37 | ||
43 | 38 | ||
44 | readConfig(); | 39 | readConfig(); |
45 | getAddress(); | 40 | getAddress(); |
46 | } | 41 | } |
47 | 42 | ||
48 | AddressBookPluginWidget::~AddressBookPluginWidget() { | 43 | AddressBookPluginWidget::~AddressBookPluginWidget() { |
49 | delete m_contactdb; | 44 | delete m_contactdb; |