Skip to content

Commit

Permalink
Fix python calls to inexistent methods
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 17, 2016
1 parent 3001bd5 commit 576ad13
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion python/plugins/db_manager/dlg_sql_layer_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,6 @@ def updateSqlLayer(self):
self.layer.reload()
self.iface.actionDraw().trigger()
self.iface.mapCanvas().refresh()
self.iface.legendInterface().refreshLayerLegend(layer)
finally:
QApplication.restoreOverrideCursor()

Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/qgis/SetRasterStyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,3 @@ def processAlgorithm(self, progress):
layer.readSymbology(n, '')
self.setOutputValue(self.OUTPUT, filename)
iface.mapCanvas().refresh()
iface.legendInterface().refreshLayerLegend(layer)
1 change: 0 additions & 1 deletion python/plugins/processing/algs/qgis/SetVectorStyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,4 @@ def processAlgorithm(self, progress):
else:
layer.loadNamedStyle(style)
iface.mapCanvas().refresh()
iface.legendInterface().refreshLayerLegend(layer)
layer.triggerRepaint()
1 change: 0 additions & 1 deletion python/plugins/processing/tools/dataobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ def load(fileName, name=None, crs=None, style=None):
style = ProcessingConfig.getSetting(ProcessingConfig.RASTER_STYLE)
qgslayer.loadNamedStyle(style)
QgsMapLayerRegistry.instance().addMapLayers([qgslayer])
iface.legendInterface().refreshLayerLegend(qgslayer)
else:
if prjSetting:
settings.setValue('/Projections/defaultBehaviour', prjSetting)
Expand Down

0 comments on commit 576ad13

Please sign in to comment.