From 67051c8bb6f5a71f15b249f9e9757e3e63ef88f3 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Wed, 15 Oct 2014 21:06:53 +0200 Subject: [PATCH] Update Game List when setting new Game List Tags Using the Game List Tags dialog to alter the gae header lines now automatically causes an update of the Game list according to the new tags specification. --- dialogs.c | 1 + frontend.h | 1 + ngamelist.c | 7 +++++++ 3 files changed, 9 insertions(+), 0 deletions(-) diff --git a/dialogs.c b/dialogs.c index a992eee..0378c01 100644 --- a/dialogs.c +++ b/dialogs.c @@ -2149,6 +2149,7 @@ GLT_OK (int n) { GLT_ParseList(); appData.gameListTags = strdup(lpUserGLT); + GameListUpdate(); return 1; } diff --git a/frontend.h b/frontend.h index a81fd4b..aa7612d 100644 --- a/frontend.h +++ b/frontend.h @@ -180,6 +180,7 @@ void GameListPopUp P((FILE *fp, char *filename)); void GameListPopDown P((void)); void GameListHighlight P((int index)); void GameListDestroy P((void)); +void GameListUpdate P((void)); FILE *GameFile P((void)); /* these are in wedittags.c */ diff --git a/ngamelist.c b/ngamelist.c index 5417804..d202ad6 100644 --- a/ngamelist.c +++ b/ngamelist.c @@ -221,6 +221,13 @@ GameListReplace (int page) } void +GameListUpdate () +{ + GameListPrepare(False, False); + GameListReplace(0); +} + +void GameListPopUp (FILE *fp, char *filename) { if (glc == NULL) { -- 1.7.0.4