mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-18 00:06:00 -04:00
Fix console errors
This commit is contained in:
parent
d283223c56
commit
fe314754c6
@ -407,9 +407,9 @@ class PythonConsoleWidget(QWidget):
|
|||||||
}
|
}
|
||||||
|
|
||||||
self.classMenu = QMenu()
|
self.classMenu = QMenu()
|
||||||
for (title, icon), commands in default_command.iteritems():
|
for (title, icon), commands in default_command.items():
|
||||||
action = self.classMenu.addAction(icon, title)
|
action = self.classMenu.addAction(icon, title)
|
||||||
action.triggered[()].connect(
|
action.triggered.connect(
|
||||||
lambda commands=commands: self.shell.commandConsole(commands))
|
lambda commands=commands: self.shell.commandConsole(commands))
|
||||||
|
|
||||||
cM = self.toolBar.widgetForAction(self.actionClass)
|
cM = self.toolBar.widgetForAction(self.actionClass)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user