summaryrefslogtreecommitdiffstats
path: root/kaddressbook/freebusywidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/freebusywidget.cpp')
-rw-r--r--kaddressbook/freebusywidget.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/kaddressbook/freebusywidget.cpp b/kaddressbook/freebusywidget.cpp
index 9bda32491..096c1d583 100644
--- a/kaddressbook/freebusywidget.cpp
+++ b/kaddressbook/freebusywidget.cpp
@@ -68,6 +68,11 @@ void FreeBusyWidget::storeContact( KABC::Addressee *addr )
KCal::FreeBusyUrlStore::self()->writeUrl( addr->preferredEmail(), mURL->url() );
KCal::FreeBusyUrlStore::self()->sync();
+ if ( mURL->url().isEmpty() ) {
+ addr->removeCustom( "KADDRESSBOOK", "FreeBusyURL" );
+ } else {
+ addr->insertCustom( "KADDRESSBOOK", "FreeBusyURL", mURL->url() );
+ }
}
void FreeBusyWidget::setReadOnly( bool readOnly )