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(+) diff --git a/dialogs.c b/dialogs.c index a992eeef..0378c013 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 a81fd4ba..aa7612db 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 5417804b..d202ad6d 100644 --- a/ngamelist.c +++ b/ngamelist.c @@ -220,6 +220,13 @@ GameListReplace (int page) SetDialogTitle(GameListDlg, buf); } +void +GameListUpdate () +{ + GameListPrepare(False, False); + GameListReplace(0); +} + void GameListPopUp (FILE *fp, char *filename) { -- 2.17.1