openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #10382
[Merge] lp:~raoul-snyman/openlp/bug-791050 into lp:openlp
Raoul Snyman has proposed merging lp:~raoul-snyman/openlp/bug-791050 into lp:openlp.
Requested reviews:
OpenLP Core (openlp-core)
Related bugs:
Bug #791050 in OpenLP: "Mac OS: Blank screen button options unavailable when item loaded to Live"
https://bugs.launchpad.net/openlp/+bug/791050
For more details, see:
https://code.launchpad.net/~raoul-snyman/openlp/bug-791050/+merge/65767
Fixed bug #791050 by hiding and then showing the toolbar.
--
https://code.launchpad.net/~raoul-snyman/openlp/bug-791050/+merge/65767
Your team OpenLP Core is requested to review the proposed merge of lp:~raoul-snyman/openlp/bug-791050 into lp:openlp.
=== modified file 'openlp/core/ui/slidecontroller.py'
--- openlp/core/ui/slidecontroller.py 2011-06-16 22:03:59 +0000
+++ openlp/core/ui/slidecontroller.py 2011-06-24 07:07:26 +0000
@@ -500,7 +500,9 @@
"""
Allows the live toolbar to be customised
"""
- self.toolbar.setVisible(True)
+ # Work-around for OS X, hide and then show the toolbar
+ # See bug #791050
+ self.toolbar.hide()
self.mediabar.setVisible(False)
self.toolbar.makeWidgetsInvisible([u'Song Menu'])
self.toolbar.makeWidgetsInvisible(self.loopList)
@@ -515,12 +517,18 @@
if item.is_media():
self.toolbar.setVisible(False)
self.mediabar.setVisible(True)
+ else:
+ # Work-around for OS X, hide and then show the toolbar
+ # See bug #791050
+ self.toolbar.show()
def enablePreviewToolBar(self, item):
"""
Allows the Preview toolbar to be customised
"""
- self.toolbar.setVisible(True)
+ # Work-around for OS X, hide and then show the toolbar
+ # See bug #791050
+ self.toolbar.hide()
self.mediabar.setVisible(False)
self.toolbar.makeWidgetsInvisible(self.songEditList)
if item.is_capable(ItemCapabilities.AllowsEdit) and item.from_plugin:
@@ -529,6 +537,10 @@
self.toolbar.setVisible(False)
self.mediabar.setVisible(True)
self.volumeSlider.setAudioOutput(self.audio)
+ if not item.is_media():
+ # Work-around for OS X, hide and then show the toolbar
+ # See bug #791050
+ self.toolbar.show()
def refreshServiceItem(self):
"""
Follow ups