mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
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
This commit is contained in:
parent
ee8c26ba98
commit
e51eba853a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user