Diffstat (limited to 'core/pim/today/plugins/addressbook/addressplugin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/today/plugins/addressbook/addressplugin.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/pim/today/plugins/addressbook/addressplugin.cpp b/core/pim/today/plugins/addressbook/addressplugin.cpp index 5d5d34c..263a0c5 100644 --- a/core/pim/today/plugins/addressbook/addressplugin.cpp +++ b/core/pim/today/plugins/addressbook/addressplugin.cpp @@ -44,31 +44,33 @@ QString AddressBookPlugin::pixmapNameWidget() const { QWidget* AddressBookPlugin::widget( QWidget *wid ) { m_abWidget = new AddressBookPluginWidget( wid, "AddressBook" ); return m_abWidget; } QString AddressBookPlugin::pixmapNameConfig() const { return "addressbook/AddressBook"; } TodayConfigWidget* AddressBookPlugin::configWidget( QWidget* wid ) { return new AddressBookPluginConfig( wid , "AddressBook" ); } QString AddressBookPlugin::appName() const { return "addressbook"; } bool AddressBookPlugin::excludeFromRefresh() const { return false; } void AddressBookPlugin::refresh() { - m_abWidget->refresh( NULL ); + if(m_abWidget) + m_abWidget->refresh( 0l ); } void AddressBookPlugin::reinitialize() { - m_abWidget->reinitialize(); + if(m_abWidget) + m_abWidget->reinitialize(); } |