This commit is contained in:
Kovid Goyal 2013-12-06 13:04:27 +05:30
parent a862a3d72f
commit f31bfb749c

View File

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