Skip to content

Commit

Permalink
fix chat user context menu View Replays in Vault
Browse files Browse the repository at this point in the history
3 out of 5 given values weren't set
  • Loading branch information
GrotheFAF committed Jan 1, 2018
1 parent f6eb7b2 commit 1263c12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/replays/_replayswidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 """
Expand Down

0 comments on commit 1263c12

Please sign in to comment.