Skip to content
Permalink
Browse files

[pyqgis-console] fix - allows to apply the console settings at all th…

…e tabs
  • Loading branch information
slarosa committed Apr 22, 2013
1 parent 13d7ced commit 1a9184144d82bd87cdd387e2637217a3001cd097
Showing with 6 additions and 4 deletions.
  1. +1 −1 python/console/console.py
  2. +5 −3 python/console/console_editor.py
@@ -602,7 +602,7 @@ def openSettings(self):
def prefChanged(self):
self.shell.refreshLexerProperties()
self.shellOut.refreshLexerProperties()
self.tabEditorWidget.currentWidget().changeFont()
self.tabEditorWidget.changeFont()

def callWidgetMessageBar(self, text):
self.shellOut.widgetMessageBar(iface, text)
@@ -531,9 +531,6 @@ def save(self):
self.pc.updateTabListScript(self.path, action='append')
self.mw.listObject(self)

def changeFont(self):
self.newEditor.refreshLexerProperties()

def modified(self, modified):
self.mw.tabModified(self, modified)

@@ -798,6 +795,11 @@ def listObject(self, tab):
s = traceback.format_exc()
print '## Error: '
sys.stderr.write(s)

def changeFont(self):
countTab = self.count()
for i in range(countTab):
self.widget(i).newEditor.refreshLexerProperties()

def changeLastDirPath(self, tab):
tabWidget = self.widget(tab)

0 comments on commit 1a91841

Please sign in to comment.
You can’t perform that action at this time.