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 """