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 @@ -20,55 +20,57 @@ #include "addressplugin.h" #include "addresspluginconfig.h" AddressBookPlugin::AddressBookPlugin(): m_abWidget( 0l ) { } AddressBookPlugin::~AddressBookPlugin() { } QString AddressBookPlugin::pluginName() const { return QObject::tr( "AddressBook plugin" ); } double AddressBookPlugin::versionNumber() const { return 0.3; } QString AddressBookPlugin::pixmapNameWidget() const { return "addressbook/AddressBook"; } 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(); } |