summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-10-13 21:24:44 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-10-13 21:24:44 +0000
commite51eba853af674bb6e77bb28996da8b81ec3c8b3 (patch)
tree1b71da44f1c9cfc8141abcd9b9729992e7ea7b19
parentee8c26ba98eb9f141635f33e0a77c5645708a246 (diff)
downloadirssi-e51eba853af674bb6e77bb28996da8b81ec3c8b3.zip
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
-rw-r--r--src/fe-common/core/themes.c2
1 files changed, 1 insertions, 1 deletions
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;
}