Skip to content

Commit 77ca11e

Browse files
committedFeb 20, 2018
Display project crs
1 parent c50e4f2 commit 77ca11e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎python/plugins/db_manager/dlg_import_vector.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
QgsVectorLayerExporter,
3737
QgsProject,
3838
QgsSettings)
39-
from qgis.gui import QgsMessageViewer, QgsProjectionSelectionWidget
39+
from qgis.gui import QgsMessageViewer
4040
from qgis.utils import OverrideCursor
4141

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.