refactor: clean up unused imports and improve code organization
This commit is contained in:
@@ -906,7 +906,8 @@ class Ui(Ui_Semesterapparat):
|
||||
).setToolTip("Das Medium wurde nicht im Apparat gefunden")
|
||||
|
||||
# make table link clickable
|
||||
self.tableWidget_apparat_media.itemClicked.connect(self.open_link)
|
||||
#self.tableWidget_apparat_media.itemClicked.connect(self.open_link)
|
||||
# self.tableWidget_apparat_media.
|
||||
|
||||
def open_link(self, item):
|
||||
def __openLink(link):
|
||||
@@ -924,7 +925,8 @@ class Ui(Ui_Semesterapparat):
|
||||
if columnname == "Link":
|
||||
link = __openLink(item.text())
|
||||
if link is not None:
|
||||
os.system("start " + link)
|
||||
webbrowser.open(link)
|
||||
#os.system("start " + link)
|
||||
return
|
||||
else:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user