Fixed a few Mac OS X related issues. 5_1_x

Mon, 17 Oct 2011 19:49:46 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 17 Oct 2011 19:49:46 +0200
branch
5_1_x
changeset 1371
3e5248c82ff2
parent 1361
39631c724b05
child 1372
78a9250e52de

Fixed a few Mac OS X related issues.

E5Gui/E5SideBar.py file | annotate | diff | comparison | revisions
Utilities/__init__.py file | annotate | diff | comparison | revisions
--- a/E5Gui/E5SideBar.py	Sat Oct 08 18:14:37 2011 +0200
+++ b/E5Gui/E5SideBar.py	Mon Oct 17 19:49:46 2011 +0200
@@ -87,6 +87,9 @@
         """
         self.splitter = splitter
         self.splitter.splitterMoved.connect(self.__splitterMoved)
+        self.splitter.setChildrenCollapsible(False)
+        index = self.splitter.indexOf(self)
+        self.splitter.setCollapsible(index, False)
     
     def __splitterMoved(self, pos, index):
         """
--- a/Utilities/__init__.py	Sat Oct 08 18:14:37 2011 +0200
+++ b/Utilities/__init__.py	Mon Oct 17 19:49:46 2011 +0200
@@ -1311,11 +1311,15 @@
     
     fullBundle = os.path.join(qtDir, 'bin',
         generateQtToolName(toolname)) + ".app"
+    if not os.path.exists(fullBundle):
+        fullBundle = os.path.join(qtDir, generateQtToolName(toolname)) + ".app"
 
     newArgs = []
     newArgs.append("-a")
     newArgs.append(fullBundle)
-    newArgs += args
+    if args:
+        newArgs.append("--args")
+        newArgs += args
 
     return ("open", newArgs)
 

eric ide

mercurial