aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/default-source/default-source.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/default-source/default-source.c')
-rw-r--r--plugins/default-source/default-source.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/default-source/default-source.c b/plugins/default-source/default-source.c
index c1fe71d761..f6a670bdf6 100644
--- a/plugins/default-source/default-source.c
+++ b/plugins/default-source/default-source.c
@@ -41,8 +41,7 @@ commit_default_calendar (EPlugin *epl, EConfigTarget *target)
cal_target = (ECalConfigTargetSource *) target;
source = cal_target->source;
if (e_source_get_property (source, "default"))
- if (!e_cal_set_default_source (source, E_CAL_SOURCE_TYPE_EVENT, NULL))
- e_cal_set_default_source (source, E_CAL_SOURCE_TYPE_TODO, NULL);
+ e_cal_set_default_source (source, cal_target->source_type, NULL);
}
void