Fix crash when clicking on tags
CHANGELOG.md
| 12 | 12 | settings handling: systems define the settings they need, instead of having | |
| 13 | 13 | this information spread everywhere. | |
| 14 | 14 | ||
| 15 | + | ### Bug fixes ### | |
| 16 | + | ||
| 17 | + | * Fix crash when clicking on a tag to copy it. | |
| 18 | + | ||
| 15 | 19 | ### Languages ### | |
| 16 | 20 | ||
| 17 | 21 | Changes since 0.4 |
offlate/ui/editor.py
| 27 | 27 | import platform | |
| 28 | 28 | import sys | |
| 29 | 29 | import subprocess | |
| 30 | + | import urllib | |
| 30 | 31 | from watchdog.observers import Observer | |
| 31 | 32 | from watchdog.events import FileSystemEventHandler | |
| 32 | 33 | from pathlib import Path | |
… | |||
| 228 | 229 | ||
| 229 | 230 | def copyTag(self, tag): | |
| 230 | 231 | tag = tag.toDisplayString()[1:] | |
| 231 | - | tag = unquote(tag) | |
| 232 | + | tag = urllib.parse.unquote(tag) | |
| 232 | 233 | if self.msgstr.__class__.__name__ == "SpellCheckEdit": | |
| 233 | 234 | self.msgstr.insertPlainText(tag) | |
| 234 | 235 | self.msgstr.setFocus(True) | |