The branch, twofactorauth has been updated via 5883bc42783bb512128d6e3552508d7c6291575e (commit) from f4811722a4eef14cad4d5aeccea9b55327e07b6e (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- ----------------------------------------------------------------------- Summary of changes: pyhoca/wxgui/profilemanager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) The diff of changes is: diff --git a/pyhoca/wxgui/profilemanager.py b/pyhoca/wxgui/profilemanager.py index 5e17bbf..2cb38d6 100644 --- a/pyhoca/wxgui/profilemanager.py +++ b/pyhoca/wxgui/profilemanager.py @@ -109,6 +109,7 @@ class PyHocaGUI_ProfileManager(wx.Dialog): if self.action == 'ADD': self.profile_config = self.session_profiles.default_profile_config() + self.profile_config['name'] = '<%s>' %_('new session profile') # we create a backup dict of our profile_config immediately (for being able to reset erroneously made changes) self.profile_config_bak = copy.deepcopy(self.profile_config) @@ -1332,6 +1333,9 @@ class PyHocaGUI_ProfileManager(wx.Dialog): if len(self.profile_config['name'].strip()) == 0: validateOk = False self._PyHocaGUI.notifier.send(title=_(u'Profile Manager'), text=_(u'Profile name is missing, profile unusable!!!'), icon='profile_error') + elif self.profile_config['name'].strip() in self.session_profiles.profile_names: + validateOk = False + self._PyHocaGUI.notifier.send(title=_(u'Profile Manager'), text=_(u'Profile name %s already exists!!!' % self.profile_config['name'].strip()), icon='profile_error') return validateOk def OnOKButton(self, event): @@ -1360,7 +1364,6 @@ class PyHocaGUI_ProfileManager(wx.Dialog): text=_(u'Changes to profile have been saved.'), icon='profile_save', ) - wx.EndBusyCursor() self.Close() self.Destroy() hooks/post-receive -- pyhoca-gui.git (Python X2Go Client (wxPython GUI)) This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "pyhoca-gui.git" (Python X2Go Client (wxPython GUI)).