Fix bug in XBoard PV display
[xboard.git] / xboard.c
index 8106b9c..d4f6569 100644 (file)
--- a/xboard.c
+++ b/xboard.c
@@ -3681,7 +3681,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) {