Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[dbmanager] handle attempts to edit raster tables (fix #30214)
  • Loading branch information
alexbruy authored and nyalldawson committed Sep 20, 2019
1 parent cc94aeb commit 54c23d1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/plugins/db_manager/db_plugins/plugin.py
Expand Up @@ -457,6 +457,12 @@ def editTableActionSlot(self, item, action, parent):
parent.infoBar.pushMessage(QApplication.translate("DBManagerPlugin", "Select a table to edit."),
Qgis.Info, parent.iface.messageTimeout())
return

if isinstance(item, RasterTable):
parent.infoBar.pushMessage(QApplication.translate("DBManagerPlugin", "Editing of raster tables is not supported."),
Qgis.Info, parent.iface.messageTimeout())
return

from ..dlg_table_properties import DlgTableProperties

DlgTableProperties(item, parent).exec_()
Expand Down

0 comments on commit 54c23d1

Please sign in to comment.