diff --git a/python/plugins/MetaSearch/dialogs/newconnectiondialog.py b/python/plugins/MetaSearch/dialogs/newconnectiondialog.py index 973ed1fd42c..2e5342b6398 100644 --- a/python/plugins/MetaSearch/dialogs/newconnectiondialog.py +++ b/python/plugins/MetaSearch/dialogs/newconnectiondialog.py @@ -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