mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Fix #8793 (Unhandled exception: AttributeError:'MessageBox' object has no attribute 'ctc_button')
This commit is contained in:
parent
c2574b862a
commit
28cba375fd
1 changed files with 2 additions and 1 deletions
|
|
@ -89,7 +89,8 @@ def copy_to_clipboard(self, *args):
|
|||
(__version__, unicode(self.windowTitle()),
|
||||
unicode(self.msg.text()),
|
||||
unicode(self.det_msg.toPlainText())))
|
||||
self.ctc_button.setText(_('Copied'))
|
||||
if hasattr(self, 'ctc_button'):
|
||||
self.ctc_button.setText(_('Copied'))
|
||||
|
||||
def showEvent(self, ev):
|
||||
ret = QDialog.showEvent(self, ev)
|
||||
|
|
|
|||
Loading…
Reference in a new issue