Skip to content
Permalink
Browse files

[dbmanager] Fixes #13679 - QGIS master crashes when closing DB Manage…

…r in preview mode
  • Loading branch information
slarosa committed Jan 27, 2016
1 parent 602437a commit 47013f7bef33d2c618333b96d9b337e4c2fc2b24
Showing with 3 additions and 1 deletion.
  1. +3 −1 python/plugins/db_manager/layer_preview.py
@@ -54,10 +54,12 @@ def refresh(self):
def loadPreview(self, item):
if item == self.item and not self.dirty:
return
self._clear()

if item is None:
return

self._clear()

if isinstance(item, Table) and item.type in [Table.VectorType, Table.RasterType]:
# update the preview, but first let the manager chance to show the canvas
runPrev = lambda: self._loadTablePreview(item)

0 comments on commit 47013f7

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