mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-29 20:36:57 +01:00
more pyqt busywork
This commit is contained in:
parent
6dd047e36a
commit
fd4138ef8f
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ def secure_webengine(view_or_page_or_settings, for_viewer=False):
|
|||
def insert_scripts(profile, *scripts):
|
||||
sc = profile.scripts()
|
||||
for script in scripts:
|
||||
for existing in sc.findScripts(script.name()):
|
||||
for existing in sc.find(script.name()):
|
||||
sc.remove(existing)
|
||||
for script in scripts:
|
||||
sc.insert(script)
|
||||
|
|
|
|||
Loading…
Reference in a new issue