diff -r f19788028d99 -r 5b8a7dd43f9f dialogs/BrowseLocationsDialog.py --- a/dialogs/BrowseLocationsDialog.py Tue Aug 28 18:06:30 2018 +0300 +++ b/dialogs/BrowseLocationsDialog.py Wed Aug 29 18:53:02 2018 +0300 @@ -45,9 +45,6 @@ (_("Memory"), [LOCATION_VAR_MEMORY])] -DIRFILTERCHOICE_OPTIONS = dict([(_(option), filter) for option, filter in GetDirFilterChoiceOptions()]) - - def GetTypeFilterChoiceOptions(): _ = NoTranslate return [_("All"), @@ -72,6 +69,8 @@ wx.Dialog.__init__(self, parent, title=_('Browse Locations'), style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER) + self.DIRFILTERCHOICE_OPTIONS = dict( + [(_(option), filter) for option, filter in GetDirFilterChoiceOptions()]) main_sizer = wx.FlexGridSizer(cols=1, hgap=0, rows=3, vgap=10) main_sizer.AddGrowableCol(0) main_sizer.AddGrowableRow(1) @@ -159,7 +158,7 @@ self.Fit() def RefreshFilters(self): - self.DirFilter = DIRFILTERCHOICE_OPTIONS[self.DirFilterChoice.GetStringSelection()] + self.DirFilter = self.DIRFILTERCHOICE_OPTIONS[self.DirFilterChoice.GetStringSelection()] self.TypeFilter = self.TypeFilterChoice.GetSelection() def RefreshLocationsTree(self):