|
|
@ -371,14 +371,14 @@ class ImporterWindow(ArtnetMainWindow):
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
self.ui.link_label.setText(ImporterWindow.UNKNOWN_LINK)
|
|
|
|
self.ui.link_label.setText(ImporterWindow.UNKNOWN_LINK)
|
|
|
|
|
|
|
|
|
|
|
|
if validators.url(link):
|
|
|
|
if link is not None and validators.url(link):
|
|
|
|
self.curr_link = link
|
|
|
|
self.curr_link = link
|
|
|
|
self.data_changed = True
|
|
|
|
self.data_changed = True
|
|
|
|
hyperlink = "<a href=\"{0}\">{1}</a>".format(link, "Source")
|
|
|
|
hyperlink = "<a href=\"{0}\">{1}</a>".format(link, "Source")
|
|
|
|
self.ui.link_label.setText(hyperlink)
|
|
|
|
self.ui.link_label.setText(hyperlink)
|
|
|
|
self.ui.link_label.setToolTip(link)
|
|
|
|
self.ui.link_label.setToolTip(link)
|
|
|
|
return link
|
|
|
|
return link
|
|
|
|
elif len(link) == 0:
|
|
|
|
elif link is None or len(link) == 0:
|
|
|
|
return ""
|
|
|
|
return ""
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
self.ui.link_label.setText(ImporterWindow.UNKNOWN_LINK)
|
|
|
|
self.ui.link_label.setText(ImporterWindow.UNKNOWN_LINK)
|
|
|
|