forked from openlp/openlp
Corrections to the code, enable_loop is now can_loop, and fits the 80 character line requirement as best i could get it too and gets rid of the odd emtpy line in generaltab.py and changes can_loop directly to the setting required
This commit is contained in:
parent
254bac86d4
commit
6b90adea6e
@ -937,10 +937,9 @@ class SlideController(QtGui.QWidget):
|
|||||||
self.updatePreview()
|
self.updatePreview()
|
||||||
else:
|
else:
|
||||||
row = self.previewListWidget.currentRow() + 1
|
row = self.previewListWidget.currentRow() + 1
|
||||||
can_loop = QtCore.QSettings().value(self.parent.generalSettingsSection
|
|
||||||
+ u'/enable slide loop', QtCore.QVariant(True)).toBool()
|
|
||||||
if row == self.previewListWidget.rowCount():
|
if row == self.previewListWidget.rowCount():
|
||||||
if can_loop:
|
if QtCore.QSettings().value(self.parent.generalSettingsSection +
|
||||||
|
u'/enable slide loop', QtCore.QVariant(True)).toBool():
|
||||||
row = 0
|
row = 0
|
||||||
else:
|
else:
|
||||||
row = self.previewListWidget.rowCount() - 1
|
row = self.previewListWidget.rowCount() - 1
|
||||||
@ -960,9 +959,8 @@ class SlideController(QtGui.QWidget):
|
|||||||
else:
|
else:
|
||||||
row = self.previewListWidget.currentRow() - 1
|
row = self.previewListWidget.currentRow() - 1
|
||||||
if row == -1:
|
if row == -1:
|
||||||
can_loop = QtCore.QSettings().value(self.parent.generalSettingsSection
|
if QtCore.QSettings().value(self.parent.generalSettingsSection +
|
||||||
+ u'/enable slide loop', QtCore.QVariant(True)).toBool()
|
u'/enable slide loop', QtCore.QVariant(True)).toBool():
|
||||||
if can_loop:
|
|
||||||
row = self.previewListWidget.rowCount() - 1
|
row = self.previewListWidget.rowCount() - 1
|
||||||
else:
|
else:
|
||||||
row = 0
|
row = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user