summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2012-12-01 18:53:52 +0000
committerSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2012-12-01 18:53:52 +0000
commit7e7f6237488dc45f0aa52697cbd30484a5b5661d (patch)
tree3e1dbe2d297985653b8adbe1f3d6596b2bbbc45d
parent388f2f1b847fcade8b92efc3e535656bd7b19668 (diff)
downloadpcsxr-7e7f6237488dc45f0aa52697cbd30484a5b5661d.tar.gz
,
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@81604 e17a0e51-4ae3-4d35-97c3-1a29b211df97
-rw-r--r--gui/Cheat.c4
1 files changed, 1 insertions, 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) {