mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-03 04:14:43 +00:00
Display the real url name in gui property field.
This commit is contained in:
parent
564ae6479f
commit
29a5c1a44a
2 changed files with 5 additions and 3 deletions
|
|
@ -10,6 +10,8 @@ Features:
|
|||
Changes:
|
||||
- dependencies: Python >= 2.7.2 is now required
|
||||
- gui: Display debug output text with fixed-width font.
|
||||
- gui: Display the real name in the URL properties.
|
||||
Closes: SF bug #3542976
|
||||
- checking: Ignore feed: URLs.
|
||||
- checking: --ignore-url now really ignores the URLs instead
|
||||
of checking only the syntax.
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@ from .. import strformat
|
|||
|
||||
def set_properties (widget, data):
|
||||
"""Write URL data values into widget text fields."""
|
||||
if data.url:
|
||||
widget.prop_url.setText(u'<a href="%(url)s">%(url)s</a>' % \
|
||||
dict(url=data.url))
|
||||
if data.base_url and data.url:
|
||||
widget.prop_url.setText(u'<a href="%(url)s">%(base_url)s</a>' % \
|
||||
dict(url=data.url, base_url=data.base_url))
|
||||
else:
|
||||
widget.prop_url.setText(u"")
|
||||
widget.prop_name.setText(data.name)
|
||||
|
|
|
|||
Loading…
Reference in a new issue