Skip to content
Permalink
Browse files

Display project crs

  • Loading branch information
Fanevanjanahary committed Feb 20, 2018
1 parent c50e4f2 commit 77ca11e6c010e891da9def111bc3c995b2a65576
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/db_manager/dlg_import_vector.py
@@ -36,7 +36,7 @@
QgsVectorLayerExporter,
QgsProject,
QgsSettings)
from qgis.gui import QgsMessageViewer, QgsProjectionSelectionWidget
from qgis.gui import QgsMessageViewer
from qgis.utils import OverrideCursor

from .ui.ui_DlgImportVector import Ui_DbManagerDlgImportVector as Ui_Dialog
@@ -68,8 +68,8 @@ def __init__(self, inLayer, outDb, outUri, parent=None):
# updates of UI
self.setupWorkingMode(self.mode)
self.cboSchema.currentIndexChanged.connect(self.populateTables)
self.widgetSourceSrid.setOptionVisible(QgsProjectionSelectionWidget.CrsNotSet, True)
self.widgetTargetSrid.setOptionVisible(QgsProjectionSelectionWidget.CrsNotSet, True)
self.widgetSourceSrid.setCrs(QgsProject.instance().crs())
self.widgetTargetSrid.setCrs(QgsProject.instance().crs())

def setupWorkingMode(self, mode):
""" hide the widget to select a layer/file if the input layer is already set """

0 comments on commit 77ca11e

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