File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
python/plugins/MetaSearch/dialogs Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -772,11 +772,13 @@ def addVectorLayer(path, name):
772
772
conn_cmb = ows_provider .findChild (QWidget , 'mConnectionsComboBox' )
773
773
connect = 'mConnectButton_clicked'
774
774
elif service_type == 'ESRI:ArcGIS:MapServer' :
775
- ows_provider .addAction (self .iface .actionAddAmsLayer () )
775
+ ows_provider .addRasterLayer . connect (self .iface .addRasterLayer )
776
776
conn_cmb = ows_provider .findChild (QComboBox )
777
777
connect = 'connectToServer'
778
778
elif service_type == 'ESRI:ArcGIS:FeatureServer' :
779
- ows_provider .addAction (self .iface .actionAddAfsLayer ())
779
+ def addAfsLayer (path , name ):
780
+ self .iface .mainWindow ().addVectorLayer (path , name , 'afs' )
781
+ ows_provider .addVectorLayer .connect (addAfsLayer )
780
782
conn_cmb = ows_provider .findChild (QComboBox )
781
783
connect = 'connectToServer'
782
784
ows_provider .setModal (False )
You can’t perform that action at this time.
0 commit comments