mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 21:04:45 +02:00
Fix #1482 (error convert file from fb2 to lrf)
This commit is contained in:
parent
662a4641bf
commit
e8092dc368
1 changed files with 4 additions and 1 deletions
|
|
@ -199,7 +199,10 @@ def showMessage(self, msg, timeout=0):
|
|||
ret = QStatusBar.showMessage(self, msg, timeout)
|
||||
if self.systray is not None:
|
||||
if isosx and isinstance(msg, unicode):
|
||||
msg = msg.encode(preferred_encoding)
|
||||
try:
|
||||
msg = msg.encode(preferred_encoding)
|
||||
except UnicodeEncodeError:
|
||||
msg = msg.encode('utf-8')
|
||||
self.systray.showMessage('calibre', msg, self.systray.Information, 10000)
|
||||
return ret
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue