Reverse option logic. Now it's "enable alternating row colors".

This commit is contained in:
Patrick Zimmermann 2013-01-18 22:41:11 +01:00
parent 5f04c934b1
commit 768b27101e
2 changed files with 3 additions and 4 deletions

View File

@ -124,7 +124,7 @@ class OpenLP(QtGui.QApplication):
Settings().setValue(u'general/has run wizard', True)
# Correct stylesheet bugs
application_stylesheet = u''
if Settings().value(u'advanced/alternate rows', sys.platform.startswith(u'win')):
if not Settings().value(u'advanced/alternate rows', not sys.platform.startswith(u'win')):
base_color = self.palette().color(QtGui.QPalette.Active, QtGui.QPalette.Base)
alternate_rows_repair_stylesheet = \
u'QTableWidget, QListWidget, QTreeWidget {alternate-background-color: ' + base_color.name() + ';}\n'

View File

@ -342,8 +342,7 @@ class AdvancedTab(SettingsTab):
'OpenLP data files. These files WILL be replaced during a copy.'))
self.displayWorkaroundGroupBox.setTitle(translate('OpenLP.AdvancedTab', 'Display Workarounds'))
self.x11BypassCheckBox.setText(translate('OpenLP.AdvancedTab','Bypass X11 Window Manager'))
self.alternateRowsCheckBox.setText(translate('OpenLP.AdvancedTab',
'Disable alternating row colors in lists'))
self.alternateRowsCheckBox.setText(translate('OpenLP.AdvancedTab', 'Enable alternating row colors in lists'))
# Slide Limits
self.slideGroupBox.setTitle(translate('OpenLP.GeneralTab', 'Service Item Slide Limits'))
self.slideLabel.setText(translate('OpenLP.GeneralTab', 'Behavior of next/previous on the last/first slide:'))
@ -390,7 +389,7 @@ class AdvancedTab(SettingsTab):
# Fix for bug #936281.
# Prevent the dialog displayed by the alternateRowsCheckBox to display.
self.alternateRowsCheckBox.blockSignals(True)
self.alternateRowsCheckBox.setChecked(settings.value(u'alternate rows', sys.platform.startswith(u'win')))
self.alternateRowsCheckBox.setChecked(settings.value(u'alternate rows', not sys.platform.startswith(u'win')))
self.alternateRowsCheckBox.blockSignals(False)
self.defaultColor = settings.value(u'default color', u'#ffffff')
self.defaultFileEdit.setText(settings.value(u'default image', u':/graphics/openlp-splash-screen.png'))