@@ -603,7 +603,7 @@ var
begin
if Item.Tag = jpsMain.ActivePageIndex then Exit;
- bCloseCompare := (Item.Tag in [0..3]) and (jpsMain.ActivePageIndex = 4);
+ bCloseCompare := (Item.Tag in [0..3, 5]) and (jpsMain.ActivePageIndex = 4);
case Item.Tag of
0..2, 5: ChangeView;