Fix erasing of premove highlights XB
[xboard.git] / ngamelist.c
index 5417804..1004a92 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * ngamelist.c -- Game list window, Xt-independent front-end code for XBoard
  *
- * Copyright 1995, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
+ * Copyright 1995, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Free Software Foundation, Inc.
  * ------------------------------------------------------------------------
  *
  * GNU XBoard is free software: you can redistribute it and/or modify
@@ -221,6 +221,14 @@ GameListReplace (int page)
 }
 
 void
+GameListUpdate ()
+{
+    if(!DialogExists(GameListDlg)) return;
+    GameListPrepare(False, False);
+    GameListReplace(0);
+}
+
+void
 GameListPopUp (FILE *fp, char *filename)
 {
     if (glc == NULL) {