[X2Go-Commits] [pyhoca-gui] 01/01: Make sure new session profiles are mutable in the session profile manager GUI.

git-admin at x2go.org git-admin at x2go.org
Wed Apr 16 10:12:04 CEST 2014


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository pyhoca-gui.

commit a75fe213806f514bbbd84623880a0eb73cc8105c
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed Apr 16 10:12:02 2014 +0200

    Make sure new session profiles are mutable in the session profile manager GUI.
---
 debian/changelog               |    1 +
 pyhoca/wxgui/profilemanager.py |    8 ++++----
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 65a6688..2069693 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -43,6 +43,7 @@ pyhoca-gui (0.5.0.0-0x2go1) UNRELEASED; urgency=low
     - Make check_running() test terminal server / multi-session safe. (Fixes: #19).
     - Windows PyHoca-GUI.log file: create with PID in file name. On log file creation
       try removing all old log files that are not still open.
+    - Make sure new session profiles are mutable in the session profile manager GUI.
     - Update English / German translation.
 
  -- Mike Gabriel <mike.gabriel at das-netzwerkteam.de>  Wed, 08 Jan 2014 21:28:37 +0100
diff --git a/pyhoca/wxgui/profilemanager.py b/pyhoca/wxgui/profilemanager.py
index 8d75e01..c548cb1 100644
--- a/pyhoca/wxgui/profilemanager.py
+++ b/pyhoca/wxgui/profilemanager.py
@@ -185,7 +185,7 @@ class PyHocaGUI_ProfileManager(wx.Dialog):
         self.tab_MediaResources = wx.Panel(self.X2GoTabs, -1)
         self.tab_SharedResources = wx.Panel(self.X2GoTabs, -1)
 
-        if not self.session_profiles.is_mutable(self.profile_id):
+        if not self.session_profiles.is_mutable(self.profile_id) and not self.action.startswith('ADD'):
             self.tab_Profile.Enable(False)
             self.tab_Session.Enable(False)
             self.tab_Connection.Enable(False)
@@ -382,7 +382,7 @@ class PyHocaGUI_ProfileManager(wx.Dialog):
             self.DefaultButton = wx.Button(self, -1, _(u'Reset'))
         self.ApplyButton = wx.Button(self, -1, _(u"Apply"))
         self.CancelButton = wx.Button(self, -1, _(u"Cancel"))
-        if self.session_profiles.is_mutable(self.profile_id):
+        if self.session_profiles.is_mutable(self.profile_id) and not self.action.startswith('ADD'):
             self.OKButton.SetDefault()
         else:
             self.OKButton.Enable(False)
@@ -1574,7 +1574,7 @@ class PyHocaGUI_ProfileManager(wx.Dialog):
         self.SoundPortLabel.Enable(False)
         self.SoundPort.Enable(False)
         self.Esd.Enable(False)
-        if self.session_profiles.is_mutable(self.profile_id):
+        if self.session_profiles.is_mutable(self.profile_id) and not self.action.startswith('ADD'):
             self.tab_SharedResources.Enable(True)
         self.RDPServer.Enable(False)
         _hosts = self.Host.GetValue()
@@ -1632,7 +1632,7 @@ class PyHocaGUI_ProfileManager(wx.Dialog):
             self.DefaultSoundPort.Enable(True)
             self.DefaultSoundPort.SetValue(True)
             self.Esd.Enable(True)
-        if self.session_profiles.is_mutable(self.profile_id):
+        if self.session_profiles.is_mutable(self.profile_id) and not self.action.startswith('ADD'):
             self.tab_SharedResources.Enable(True)
         self.RDPServer.SetValue(self.profile_config_bak['rdpserver'])
         self.RDPOptions.SetValue(self.profile_config_bak['rdpoptions'])

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/pyhoca-gui.git



More information about the x2go-commits mailing list