From 1263c128dac43b27df2013657abb2dbf0598c5b4 Mon Sep 17 00:00:00 2001 From: GrotheFAF Date: Sun, 31 Dec 2017 05:43:19 +0100 Subject: [PATCH] fix chat user context menu View Replays in Vault 3 out of 5 given values weren't set --- src/replays/_replayswidget.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/replays/_replayswidget.py b/src/replays/_replayswidget.py index d10de9be1..55bf7616b 100644 --- a/src/replays/_replayswidget.py +++ b/src/replays/_replayswidget.py @@ -456,13 +456,13 @@ def __init__(self, widget, dispatcher, client, gameset, playerset): def searchVault(self, minRating=None, mapName=None, playerName=None, modListIndex=None): w = self._w - if minRating: + if minRating is not None: w.minRating.setValue(minRating) - if mapName: + if mapName is not None: w.mapName.setText(mapName) - if playerName: + if playerName is not None: w.playerName.setText(playerName) - if modListIndex: + if modListIndex is not None: w.modList.setCurrentIndex(modListIndex) """ search for some replays """