From: Mario Rugiero <mrugi...@gmail.com> --- src/icon-theme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/icon-theme.c b/src/icon-theme.c index 7fba616..5416351 100644 --- a/src/icon-theme.c +++ b/src/icon-theme.c @@ -171,7 +171,6 @@ static void on_remove_theme_clicked(GtkButton* btn, gpointer user_data) if(gtk_tree_selection_get_selected(sel, &model, &it)) { IconTheme* theme; - gboolean both = theme->has_icon && theme->has_cursor; if(gtk_tree_model_iter_n_children(model, NULL) < 2) { @@ -190,6 +189,7 @@ static void on_remove_theme_clicked(GtkButton* btn, gpointer user_data) gtk_tree_selection_select_iter(sel, &it); /* FIXME: in rare case, a theme can contain both icons and cursors */ + gboolean both = theme->has_icon && theme->has_cursor; if(both) /* we need to remove item in another list store, too */ { model = GTK_TREE_MODEL(model == (GtkTreeModel*)app.icon_theme_store ? app.cursor_theme_store : app.icon_theme_store); -- 2.17.1 _______________________________________________ Lxde-list mailing list Lxde-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxde-list