mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix error message in OSX when dragging and dropping a cover onto the edit metadata dialog
This commit is contained in:
parent
ff57c45613
commit
7448079aa8
@ -270,7 +270,7 @@ _check_symlinks_prescript()
|
||||
print 'Adding ImageMagick'
|
||||
dest = os.path.join(frameworks_dir, 'ImageMagick')
|
||||
if os.path.exists(dest):
|
||||
sutil.rmtree(dest)
|
||||
shutil.rmtree(dest)
|
||||
shutil.copytree(os.path.expanduser('~/ImageMagick'), dest, True)
|
||||
shutil.copyfile('/usr/local/lib/libpng12.0.dylib', os.path.join(dest, 'lib', 'libpng12.0.dylib'))
|
||||
|
||||
@ -343,9 +343,10 @@ def main():
|
||||
'calibre.ebooks.lrf.any.*', 'calibre.ebooks.lrf.feeds.*',
|
||||
'keyword', 'codeop', 'pydoc', 'readline',
|
||||
'BeautifulSoup', 'calibre.ebooks.lrf.fonts.prs500.*',
|
||||
'dateutil',
|
||||
'dateutil', 'email.iterators',
|
||||
'email.generator',
|
||||
],
|
||||
'packages' : ['PIL', 'Authorization', 'lxml'],
|
||||
'packages' : ['PIL', 'Authorization', 'lxml', 'dns'],
|
||||
'excludes' : ['IPython'],
|
||||
'plist' : { 'CFBundleGetInfoString' : '''calibre, an E-book management application.'''
|
||||
''' Visit http://calibre.kovidgoyal.net for details.''',
|
||||
|
@ -59,6 +59,8 @@ class FetchISBNDB(Thread):
|
||||
args.extend(['--author', self.author])
|
||||
if self.publisher:
|
||||
args.extend(['--publisher', self.publisher])
|
||||
if self.verbose:
|
||||
args.extend(['--verbose'])
|
||||
args.append(self.key)
|
||||
try:
|
||||
opts, args = option_parser().parse_args(args)
|
||||
|
@ -50,7 +50,10 @@ class JobsDialog(QDialog, Ui_JobsDialog):
|
||||
self.running_time_timer.start(1000)
|
||||
|
||||
def update_running_time(self, *args):
|
||||
try:
|
||||
self.model.running_time_updated()
|
||||
except: # Raises random exceptions on OS X
|
||||
pass
|
||||
|
||||
def kill_job(self):
|
||||
for index in self.jobs_view.selectedIndexes():
|
||||
|
@ -135,7 +135,7 @@ class JobManager(QAbstractTableModel):
|
||||
self.emit(SIGNAL('dataChanged(QModelIndex, QModelIndex)'),
|
||||
self.index(row, 0), self.index(row, 3))
|
||||
|
||||
def running_time_updated(self):
|
||||
def running_time_updated(self, *args):
|
||||
for job in self.jobs:
|
||||
if not job.is_running:
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user