summaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/config')
-rw-r--r--src/config/profiles.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/config/profiles.c b/src/config/profiles.c
index 0c561ce..a94cb47 100644
--- a/src/config/profiles.c
+++ b/src/config/profiles.c
@@ -45,6 +45,7 @@ create(MqProfiles *profiles)
GFileOutputStream *stream;
gchar *default_profile;
gchar *private_profile;
+ MqConfig *config;
file = g_file_new_for_path(profiles->file_name);
@@ -58,15 +59,19 @@ create(MqProfiles *profiles)
private_profile = mq_profiles_insert(profiles, "Private", "#6060a0");
if (default_profile) {
- mq_config_deref(mq_config_new(default_profile,
- MQ_CONFIG_PROFILE_DEFAULT));
+ config = mq_config_new(default_profile,
+ MQ_CONFIG_PROFILE_DEFAULT);
+ mq_config_save(config);
+ mq_config_deref(config);
mq_profiles_set_default(profiles, default_profile);
g_free(default_profile);
}
if (private_profile) {
- mq_config_deref(mq_config_new(private_profile,
- MQ_CONFIG_PROFILE_PRIVATE));
+ config = mq_config_new(private_profile,
+ MQ_CONFIG_PROFILE_PRIVATE);
+ mq_config_save(config);
+ mq_config_deref(config);
g_free(private_profile);
}