mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-03 19:36:05 +01:00
...
This commit is contained in:
parent
5563970967
commit
201649a982
1 changed files with 1 additions and 1 deletions
|
|
@ -210,6 +210,7 @@ def pretty_print(self, name):
|
|||
return False
|
||||
|
||||
def launch_editor(path_to_edit, path_is_raw=False, syntax='html'):
|
||||
app = QApplication([])
|
||||
if path_is_raw:
|
||||
raw = path_to_edit
|
||||
else:
|
||||
|
|
@ -220,7 +221,6 @@ def launch_editor(path_to_edit, path_is_raw=False, syntax='html'):
|
|||
syntax = 'html'
|
||||
elif ext in ('css',):
|
||||
syntax = 'css'
|
||||
app = QApplication([])
|
||||
t = Editor(syntax)
|
||||
t.data = raw
|
||||
t.show()
|
||||
|
|
|
|||
Loading…
Reference in a new issue