Skip to content

Commit

Permalink
tooledit: set locale additionally on reload and edit
Browse files Browse the repository at this point in the history
  • Loading branch information
hansu committed Jul 11, 2024
1 parent d4b7337 commit c5a4ea4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/python/gladevcp/tooledit_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ def warning_dialog(self, line_number):

# Reload the tool file into display
def reload(self,widget):
locale.setlocale(locale.LC_ALL, '')
self.hash_code = self.md5sum(self.toolfile)
# clear the current liststore, search the tool file, and add each tool
if self.toolfile == None:return
Expand Down Expand Up @@ -462,6 +463,7 @@ def on_treeview2_button_press_event(self, widget, event):
# depending what is edited add the right type of info integer,float or text
# If it's a filtered display then we must convert the path
def col_editted(self, widget, path, new_text, col, filter):
locale.setlocale(locale.LC_ALL, '')
if filter == 'wear':
(store_path,) = self.wear_filter.convert_path_to_child_path(path)
path = store_path
Expand Down

0 comments on commit c5a4ea4

Please sign in to comment.