Skip to content

Commit

Permalink
[dbmanager] Fixes #13679 - QGIS master crashes when closing DB Manage…
Browse files Browse the repository at this point in the history
…r in preview mode
  • Loading branch information
slarosa committed Jan 27, 2016
1 parent 602437a commit 47013f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/plugins/db_manager/layer_preview.py
Expand Up @@ -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)
Expand Down

0 comments on commit 47013f7

Please sign in to comment.