summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-06 17:22:53 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-11-06 17:22:53 (EST)
commit8beef495b1b2873b18b2f12326cdc71fb44822c0 (patch)
treea550d7bce22c3f6cdcfbf7072c547234552f1f11 /src
parentcfc3302d3c758be31b60d1bf938a07f893c5c1ed (diff)
downloadmarquee-8beef495b1b2873b18b2f12326cdc71fb44822c0.zip
marquee-8beef495b1b2873b18b2f12326cdc71fb44822c0.tar.gz
marquee-8beef495b1b2873b18b2f12326cdc71fb44822c0.tar.bz2
mq_profiles_new(): Save created configs
Diffstat (limited to 'src')
-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);
}