Also allow user to claim by offering draw before his move
[xboard.git] / xboard.c
index 8106b9c..a9f8991 100644 (file)
--- a/xboard.c
+++ b/xboard.c
@@ -850,6 +850,7 @@ XtActionsRec boardActions[] = {
     { "LoadNextGameProc", LoadNextGameProc },
     { "LoadPrevGameProc", LoadPrevGameProc },
     { "LoadSelectedProc", LoadSelectedProc },
+    { "SetFilterProc", SetFilterProc },
     { "ReloadGameProc", ReloadGameProc },
     { "LoadPositionProc", LoadPositionProc },
     { "LoadNextPositionProc", LoadNextPositionProc },
@@ -3681,7 +3682,7 @@ void PieceMenuPopup(w, event, params, num_params)
 {
     String whichMenu;
 
-    if (event->type != ButtonRelease) UnLoadPV(); // [HGM] pv
+    if (event->type == ButtonRelease) UnLoadPV(); // [HGM] pv
     if (event->type != ButtonPress) return;
     if (errorUp) ErrorPopDown();
     switch (gameMode) {