summaryrefslogtreecommitdiffstats
path: root/kresources
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-10 20:30:30 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-10 20:30:30 +0000
commitb19e36a84a160d2a0ece251e462e00b0b1b8774d (patch)
treed712335ae99d30ef50b3cb23f625caab84c868d5 /kresources
parent672beaaffcce643b8ab17a191327caa771641a7e (diff)
downloadtdepim-b19e36a84a160d2a0ece251e462e00b0b1b8774d.tar.gz
tdepim-b19e36a84a160d2a0ece251e462e00b0b1b8774d.zip
Fixed crash when configuring resource from K Control Center
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1148484 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kresources')
-rw-r--r--kresources/carddav/resource.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/kresources/carddav/resource.cpp b/kresources/carddav/resource.cpp
index d8d4508d0..d974bd826 100644
--- a/kresources/carddav/resource.cpp
+++ b/kresources/carddav/resource.cpp
@@ -267,7 +267,9 @@ void ResourceCardDav::ensureReadOnlyFlagHonored() {
//enableChangeNotification();
- addressBook()->emitAddressBookChanged();
+ if (addressBook() != NULL) {
+ addressBook()->emitAddressBookChanged();
+ }
}
void ResourceCardDav::setReadOnly(bool v) {