Skip to content

Commit

Permalink
Removed tooltip when no info.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasedv committed Mar 17, 2020
1 parent c2936b7 commit 4d12d4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Modules/download_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ def __init__(self, process: Download, slot, debug=False, parent=None, url=None):

self.info_label_in_layout = False
self.info_label = QLabel('', parent=self)
self.info_label.setToolTip(f'URL: {url} (Right-click to copy)')
if url is not None:
self.info_label.setToolTip(f'URL: {url} (Right-click to copy)')
self.info_label.setWordWrap(True)
self.info_label.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed)
self.info_label.hide()
Expand Down

0 comments on commit 4d12d4a

Please sign in to comment.