diff options
author | Zhang Xianwei <[email protected]> | 2018-01-07 22:25:10 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-01-23 13:51:23 +0100 |
commit | 605ad333f688549ddd9a6d7ecaa128793d819893 (patch) | |
tree | c72c50dea973d49f48f3e54c3529fbb5f33d87b8 /capplets/appearance/theme-util.c | |
parent | 414955243446d7356e401096a505128043d9011c (diff) | |
download | mate-control-center-605ad333f688549ddd9a6d7ecaa128793d819893.tar.bz2 mate-control-center-605ad333f688549ddd9a6d7ecaa128793d819893.tar.xz |
theme-util.c: fix reinstalling the deleted theme can cause failure
fixes https://github.com/mate-desktop/mate-control-center/issues/322
Signed-off-by: Zhang Xianwei <[email protected]>
Diffstat (limited to 'capplets/appearance/theme-util.c')
-rw-r--r-- | capplets/appearance/theme-util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/capplets/appearance/theme-util.c b/capplets/appearance/theme-util.c index e7c97d06..5f7b6c40 100644 --- a/capplets/appearance/theme-util.c +++ b/capplets/appearance/theme-util.c @@ -99,8 +99,9 @@ gboolean theme_delete (const gchar *name, ThemeType type) break; case THEME_TYPE_META: - theme = (MateThemeCommonInfo *) mate_theme_meta_info_find (name); + theme = (MateThemeCommonInfo *) mate_theme_info_find (name); theme_dir = g_strdup (theme->path); + del_empty_parent = FALSE; break; case THEME_TYPE_CURSOR: |