[dbmanager] handle attempts to edit raster tables (fix #30214)

This commit is contained in:
Alexander Bruy 2019-09-20 14:18:29 +03:00 committed by Nyall Dawson
parent cc94aebc6f
commit 54c23d137f

View File

@ -457,6 +457,12 @@ class Database(DbItemObject):
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_()