This commit is contained in:
Kovid Goyal 2013-12-06 10:32:18 +05:30
parent 653a48527f
commit 20e3d4fe98

View File

@ -137,9 +137,9 @@ class Editor(QMainWindow):
except KeyError: except KeyError:
pass pass
self.tools_bar = b = self.addToolBar(_('Editor tools')) self.tools_bar = b = self.addToolBar(_('Editor tools'))
if self.syntax == 'html': if actions and self.syntax == 'html':
b.addAction(actions['fix-html-current']) b.addAction(actions['fix-html-current'])
if self.syntax in {'xml', 'html', 'css'}: if actions and self.syntax in {'xml', 'html', 'css'}:
b.addAction(actions['pretty-current']) b.addAction(actions['pretty-current'])
def break_cycles(self): def break_cycles(self):