Display the real url name in gui property field.

This commit is contained in:
Bastian Kleineidam 2012-08-13 18:55:25 +02:00
parent 564ae6479f
commit 29a5c1a44a
2 changed files with 5 additions and 3 deletions

View file

@ -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.

View file

@ -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)