[X2Go-Commits] pyhoca-gui.git - build-59a18b6e3b5d3f1dd8f07f26433d37fe5984a57d (branch) updated: 20d79a6c0bbbc05ea7de702cb5330ca20782a432

X2Go dev team git-admin at x2go.org
Tue Aug 27 13:20:58 CEST 2013


The branch, build-59a18b6e3b5d3f1dd8f07f26433d37fe5984a57d has been updated
       via  20d79a6c0bbbc05ea7de702cb5330ca20782a432 (commit)
      from  8f31b34ff60053e016e74dace7ff21e2f9a0bff1 (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 |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

The diff of changes is:
diff --git a/pyhoca/wxgui/profilemanager.py b/pyhoca/wxgui/profilemanager.py
index 2c7c8a3..78a0f42 100644
--- a/pyhoca/wxgui/profilemanager.py
+++ b/pyhoca/wxgui/profilemanager.py
@@ -128,11 +128,9 @@ class PyHocaGUI_ProfileManager(wx.Dialog):
             path_to_icon = self.profile_config['icon']
             path_to_icon = path_to_icon.lstrip(':')
             path_to_icon = os.path.join(os.path.normpath(_share_location), os.path.normpath(path_to_icon))
-        else:
+        if not os.path.exists(path_to_icon) or not 'icon' in self.profile_config:
             path_to_icon = os.path.normpath('%s/icons/PyHoca/128x128/pyhoca-session.png' % _share_location)
         self.IconPath = path_to_icon
-        path_to_icon = path_to_icon.replace('icons/128x128/x2gosession.png', os.path.normpath('icons/PyHoca/128x128/pyhoca-session.png'))
-        path_to_icon = path_to_icon.replace('x2gosession.png', 'pyhoca-session.png')
         self.IconButtonLabel = wx.StaticText(self.tab_Session, -1, "Profile icon:")
         self.IconButton = wx.BitmapButton(self.tab_Session, -1, wx.Bitmap(path_to_icon, wx.BITMAP_TYPE_ANY))
         self.SessionTypeLabel = wx.StaticText(self.tab_Session, -1, "Session type:")


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)).




More information about the x2go-commits mailing list