Skip to content
Permalink
Browse files
disable export button if we try to export a raster layer (#4319)
  • Loading branch information
Gustry authored and NathanW2 committed Apr 6, 2017
1 parent 505f2c6 commit 9c832adc51f829d7134595fa8f2333ef218dfde7
Showing with 6 additions and 1 deletion.
  1. +6 −1 python/plugins/db_manager/db_manager.py
@@ -31,7 +31,7 @@
from qgis.PyQt.QtGui import QIcon, QKeySequence

from qgis.gui import QgsMessageBar
from qgis.core import QgsSettings
from qgis.core import QgsSettings, QgsMapLayer
from .info_viewer import InfoViewer
from .table_viewer import TableViewer
from .layer_preview import LayerPreview
@@ -175,6 +175,11 @@ def exportActionSlot(self):
return

inLayer = table.toMapLayer()
if inLayer.type() != QgsMapLayer.VectorLayer:
self.infoBar.pushMessage(
self.tr("Select a vector or a tabular layer you want export."),
QgsMessageBar.WARNING, self.iface.messageTimeout())
return

from .dlg_export_vector import DlgExportVector

0 comments on commit 9c832ad

Please sign in to comment.