From e51eba853af674bb6e77bb28996da8b81ec3c8b3 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 13 Oct 2000 21:24:44 +0000 Subject: [PATCH] Saving theme didn't complain if the save failed. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@732 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/themes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fe-common/core/themes.c b/src/fe-common/core/themes.c index cefcc0c9..f72d107e 100644 --- a/src/fe-common/core/themes.c +++ b/src/fe-common/core/themes.c @@ -478,7 +478,7 @@ static void theme_save(THEME_REC *theme) path = g_strdup_printf("%s/.irssi/%s", g_get_home_dir(), g_basename(theme->path)); str = strrchr(path, '/'); - if (strncmp(theme->path, path, (int) (path-str)) != 0 && + if (strncmp(theme->path, path, (int) (path-str)) == 0 || config_write(config, str, 0660) == -1) ok = FALSE; }