Skip to content

Commit

Permalink
Fixes #17466: DB Manager does not refresh correctly map in layer preview
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Nov 14, 2017
1 parent d839840 commit 5d8963a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/db_manager/layer_preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
class LayerPreview(QgsMapCanvas):

def __init__(self, parent=None):
QgsMapCanvas.__init__(self, parent)
super(QgsMapCanvas, self).__init__(parent)
self.parent = parent
self.setCanvasColor(QColor(255, 255, 255))

Expand Down Expand Up @@ -131,3 +131,4 @@ def _loadTablePreview(self, table, limit=False):
self.currentLayer = vl

self.freeze(False)
super().refresh()

0 comments on commit 5d8963a

Please sign in to comment.