Skip to content

Commit fa4d1ba

Browse files
committedFeb 26, 2021
Don't strip accents from job name
No idea why this was there in the first place. Our archeology attempts couldn't find out as to why it was introduced. We suspect an issue with other Qt versions. At least now ロボット.stl will not be mangled into ロホット.gcode upon saving (and german bears into bars)
1 parent 5c58df3 commit fa4d1ba

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed
 

‎cura/UI/PrintInformation.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def _updateJobName(self) -> None:
305305
self.jobNameChanged.emit()
306306
return
307307

308-
base_name = self._stripAccents(self._base_name)
308+
base_name = self._base_name
309309
self._defineAbbreviatedMachineName()
310310

311311
# Only update the job name when it's not user-specified.
@@ -401,11 +401,6 @@ def _defineAbbreviatedMachineName(self) -> None:
401401

402402
self._abbr_machine = self._application.getMachineManager().getAbbreviatedMachineName(active_machine_type_name)
403403

404-
def _stripAccents(self, to_strip: str) -> str:
405-
"""Utility method that strips accents from characters (eg: â -> a)"""
406-
407-
return ''.join(char for char in unicodedata.normalize('NFD', to_strip) if unicodedata.category(char) != 'Mn')
408-
409404
@pyqtSlot(result = "QVariantMap")
410405
def getFeaturePrintTimes(self) -> Dict[str, Duration]:
411406
result = {}

0 commit comments

Comments
 (0)
Please sign in to comment.