Fix crash when clicking on tags

Julien LepillerSat Nov 14 15:07:05+0100 2020

63d7f44

Fix crash when clicking on tags

CHANGELOG.md

1212
  settings handling: systems define the settings they need, instead of having
1313
  this information spread everywhere.
1414
15+
### Bug fixes ###
16+
17+
* Fix crash when clicking on a tag to copy it.
18+
1519
### Languages ###
1620
1721
Changes since 0.4

offlate/ui/editor.py

2727
import platform
2828
import sys
2929
import subprocess
30+
import urllib
3031
from watchdog.observers import Observer
3132
from watchdog.events import FileSystemEventHandler
3233
from pathlib import Path

228229
229230
    def copyTag(self, tag):
230231
        tag = tag.toDisplayString()[1:]
231-
        tag = unquote(tag)
232+
        tag = urllib.parse.unquote(tag)
232233
        if self.msgstr.__class__.__name__ == "SpellCheckEdit":
233234
            self.msgstr.insertPlainText(tag)
234235
            self.msgstr.setFocus(True)