--- a/controls/ProjectPropertiesPanel.py Fri Feb 02 17:16:04 2018 +0300
+++ b/controls/ProjectPropertiesPanel.py Mon Feb 19 19:02:25 2018 +0300
@@ -26,6 +26,8 @@
from __future__ import absolute_import
+from xmlclass.xmlclass import URI_model # -------------------------------------------------------------------------------
# -------------------------------------------------------------------------------
@@ -285,6 +287,14 @@
new_value = textctrl.GetValue()
if name not in REQUIRED_PARAMS and new_value == "":
+ if name == 'companyURL': + if not URI_model.match(new_value): + dialog = wx.MessageDialog(self, _('Invalid URL!\n' + 'Please enter correct URL address.'), + _("Error"), wx.OK | wx.ICON_ERROR) if old_value != new_value:
self.Controller.SetProjectProperties(properties={name: new_value})
self.ParentWindow._Refresh(TITLE, FILEMENU, EDITMENU,