mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix #792
This commit is contained in:
parent
589fa1ef13
commit
ecb18a05ea
@ -84,6 +84,7 @@ class UserProfiles(QDialog, Ui_Dialog):
|
|||||||
self.populate_options(recipe)
|
self.populate_options(recipe)
|
||||||
self.stacks.setCurrentIndex(0)
|
self.stacks.setCurrentIndex(0)
|
||||||
self.toggle_mode_button.setText(_('Switch to Advanced mode'))
|
self.toggle_mode_button.setText(_('Switch to Advanced mode'))
|
||||||
|
self.source_code.setPlainText('')
|
||||||
else:
|
else:
|
||||||
self.source_code.setPlainText(src)
|
self.source_code.setPlainText(src)
|
||||||
self.highlighter = PythonHighlighter(self.source_code.document())
|
self.highlighter = PythonHighlighter(self.source_code.document())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user