mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Fix #9205 (link name instead of link address copied when new version available)
This commit is contained in:
parent
2a3f412b48
commit
b9cb1c5e3c
@ -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): # {{{
|
class StatusBar(QStatusBar): # {{{
|
||||||
|
|
||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
@ -148,7 +157,7 @@ class StatusBar(QStatusBar): # {{{
|
|||||||
self.default_message = __appname__ + ' ' + _('version') + ' ' + \
|
self.default_message = __appname__ + ' ' + _('version') + ' ' + \
|
||||||
self.get_version() + ' ' + _('created by Kovid Goyal')
|
self.get_version() + ' ' + _('created by Kovid Goyal')
|
||||||
self.device_string = ''
|
self.device_string = ''
|
||||||
self.update_label = QLabel('')
|
self.update_label = UpdateLabel('')
|
||||||
self.addPermanentWidget(self.update_label)
|
self.addPermanentWidget(self.update_label)
|
||||||
self.update_label.setVisible(False)
|
self.update_label.setVisible(False)
|
||||||
self._font = QFont()
|
self._font = QFont()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user