Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cura/UI
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2021-02-26 16:56:27 +0300
committerJaime van Kessel <nallath@gmail.com>2021-02-26 16:56:27 +0300
commitfa4d1ba1fbe4685dbab21825c7fa0bcbdc889b36 (patch)
tree72ed87ee964d0b335743232d9ebcaf9f8d8325e8 /cura/UI
parent5c58df3c73fc29a82999258633ee4051aa53a15e (diff)
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)
Diffstat (limited to 'cura/UI')
-rw-r--r--cura/UI/PrintInformation.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/cura/UI/PrintInformation.py b/cura/UI/PrintInformation.py
index 10318b3a8b..ae93b46fac 100644
--- a/cura/UI/PrintInformation.py
+++ b/cura/UI/PrintInformation.py
@@ -305,7 +305,7 @@ class PrintInformation(QObject):
self.jobNameChanged.emit()
return
- base_name = self._stripAccents(self._base_name)
+ base_name = self._base_name
self._defineAbbreviatedMachineName()
# Only update the job name when it's not user-specified.
@@ -401,11 +401,6 @@ class PrintInformation(QObject):
self._abbr_machine = self._application.getMachineManager().getAbbreviatedMachineName(active_machine_type_name)
- def _stripAccents(self, to_strip: str) -> str:
- """Utility method that strips accents from characters (eg: â -> a)"""
-
- return ''.join(char for char in unicodedata.normalize('NFD', to_strip) if unicodedata.category(char) != 'Mn')
-
@pyqtSlot(result = "QVariantMap")
def getFeaturePrintTimes(self) -> Dict[str, Duration]:
result = {}