Fix #9205 (link name instead of link address copied when new version available)

This commit is contained in:
Kovid Goyal 2011-03-01 09:30:51 -07:00
parent 2a3f412b48
commit b9cb1c5e3c

View File

@ -141,6 +141,15 @@ class Stack(QStackedWidget): # {{{
# }}}
class UpdateLabel(QLabel): # {{{
def __init__(self, *args, **kwargs):
QLabel.__init__(self, *args, **kwargs)
def contextMenuEvent(self, e):
pass
# }}}
class StatusBar(QStatusBar): # {{{
def __init__(self, parent=None):
@ -148,7 +157,7 @@ class StatusBar(QStatusBar): # {{{
self.default_message = __appname__ + ' ' + _('version') + ' ' + \
self.get_version() + ' ' + _('created by Kovid Goyal')
self.device_string = ''
self.update_label = QLabel('')
self.update_label = UpdateLabel('')
self.addPermanentWidget(self.update_label)
self.update_label.setVisible(False)
self._font = QFont()