From 7e7f6237488dc45f0aa52697cbd30484a5b5661d Mon Sep 17 00:00:00 2001 From: "SND\\edgbla_cp" Date: Sat, 1 Dec 2012 18:53:52 +0000 Subject: , git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@81604 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- gui/Cheat.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gui/Cheat.c b/gui/Cheat.c index 4eeef198..e4f7b076 100644 --- a/gui/Cheat.c +++ b/gui/Cheat.c @@ -266,13 +266,11 @@ static void OnCheatListDlg_DelClicked(GtkWidget *widget, gpointer user_data) { if (selected) { path = gtk_tree_model_get_path(model, &iter); i = *gtk_tree_path_get_indices(path); + gtk_list_store_remove (GTK_LIST_STORE (model), &iter); gtk_tree_path_free(path); RemoveCheat(i); } - - LoadCheatListItems(i); // FIXME: should remove it from the list directly - // rather than regenerating the whole list } static void OnCheatListDlg_EnableToggled(GtkCellRendererToggle *cell, gchar *path_str, gpointer user_data) { -- cgit v1.2.3