mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
backport e04570cc89d30f38430a5e71cfb795971c40afe0
This commit is contained in:
parent
418eff9e25
commit
22efb06b9a
@ -57,6 +57,11 @@ class NewConnectionDialog(QDialog, BASE_CLASS):
|
||||
self.tr('Both Name and URL must be provided'))
|
||||
return
|
||||
|
||||
if '/' in conn_name:
|
||||
QMessageBox.warning(self, self.tr('Save connection'),
|
||||
self.tr('Name cannot contain \'/\''))
|
||||
return
|
||||
|
||||
if conn_name is not None:
|
||||
key = '/MetaSearch/%s' % conn_name
|
||||
keyurl = '%s/url' % key
|
||||
|
Loading…
x
Reference in New Issue
Block a user