Skip to content

Commit

Permalink
[pyqgis-console] fix - allows to apply the console settings at all th…
Browse files Browse the repository at this point in the history
…e tabs
  • Loading branch information
slarosa committed Apr 22, 2013
1 parent 13d7ced commit 1a91841
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/console/console.py
Expand Up @@ -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)
Expand Down
8 changes: 5 additions & 3 deletions python/console/console_editor.py
Expand Up @@ -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)

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1a91841

Please sign in to comment.