Skip to content
Permalink
Browse files

Merge pull request #5633 from slarosa/fix_17466

Fixes #17466: DB Manager does not refresh correctly map in layer preview
  • Loading branch information
elpaso committed Nov 15, 2017
2 parents 364ddc1 + 5a4ace1 commit 0c2e226efe973a7a498e409260234402999e1a00
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/db_manager/layer_preview.py
@@ -34,7 +34,7 @@
class LayerPreview(QgsMapCanvas):

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

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

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

0 comments on commit 0c2e226

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