openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #10302
[Merge] lp:~raoul-snyman/openlp/bug-800047 into lp:openlp
Raoul Snyman has proposed merging lp:~raoul-snyman/openlp/bug-800047 into lp:openlp.
Requested reviews:
OpenLP Core (openlp-core)
For more details, see:
https://code.launchpad.net/~raoul-snyman/openlp/bug-800047/+merge/65299
Fixed bug #800047 where the Preferences menu item in OS X was incorrect.
--
https://code.launchpad.net/~raoul-snyman/openlp/bug-800047/+merge/65299
Your team OpenLP Core is requested to review the proposed merge of lp:~raoul-snyman/openlp/bug-800047 into lp:openlp.
=== modified file 'openlp/core/ui/mainwindow.py'
--- openlp/core/ui/mainwindow.py 2011-06-13 07:29:58 +0000
+++ openlp/core/ui/mainwindow.py 2011-06-21 06:13:29 +0000
@@ -27,6 +27,7 @@
import logging
import os
+import sys
from tempfile import gettempdir
from PyQt4 import QtCore, QtGui
@@ -291,10 +292,18 @@
# i18n add Language Actions
add_actions(self.settingsLanguageMenu, (self.autoLanguageItem, None))
add_actions(self.settingsLanguageMenu, self.languageGroup.actions())
- add_actions(self.settingsMenu, (self.settingsPluginListItem,
- self.settingsLanguageMenu.menuAction(), None,
- self.displayTagItem, self.settingsShortcutsItem,
- self.settingsConfigureItem))
+ # Order things differently in OS X so that Preferences menu item in the
+ # app menu is correct (this gets picked up automatically by Qt).
+ if sys.platform == u'darwin':
+ add_actions(self.settingsMenu, (self.settingsPluginListItem,
+ self.settingsLanguageMenu.menuAction(), None,
+ self.settingsConfigureItem, self.settingsShortcutsItem,
+ self.displayTagItem))
+ else:
+ add_actions(self.settingsMenu, (self.settingsPluginListItem,
+ self.settingsLanguageMenu.menuAction(), None,
+ self.displayTagItem, self.settingsShortcutsItem,
+ self.settingsConfigureItem))
add_actions(self.toolsMenu, (self.toolsAddToolItem, None))
add_actions(self.toolsMenu, (self.toolsOpenDataFolder, None))
add_actions(self.toolsMenu, [self.updateThemeImages])
Follow ups