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
This commit is contained in:
parent
0a5155b822
commit
9221c8cb60
@ -937,12 +937,13 @@ class SlideController(QtGui.QWidget):
|
|||||||
self.updatePreview()
|
self.updatePreview()
|
||||||
else:
|
else:
|
||||||
row = self.previewListWidget.currentRow() + 1
|
row = self.previewListWidget.currentRow() + 1
|
||||||
enable_loop = QtCore.QSettings().value(self.parent.generalSettingsSection + u'/enable slide loop', QtCore.QVariant(True)).toBool()
|
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 enable_loop:
|
if can_loop:
|
||||||
row = 0
|
row = 0
|
||||||
else:
|
else:
|
||||||
pass
|
row = self.previewListWidget.rowCount() - 1
|
||||||
self.__checkUpdateSelectedSlide(row)
|
self.__checkUpdateSelectedSlide(row)
|
||||||
self.slideSelected()
|
self.slideSelected()
|
||||||
|
|
||||||
@ -959,8 +960,9 @@ class SlideController(QtGui.QWidget):
|
|||||||
else:
|
else:
|
||||||
row = self.previewListWidget.currentRow() - 1
|
row = self.previewListWidget.currentRow() - 1
|
||||||
if row == -1:
|
if row == -1:
|
||||||
enable_loop = QtCore.QSettings().value(self.parent.generalSettingsSection + u'/enable slide loop', QtCore.QVariant(True)).toBool()
|
can_loop = QtCore.QSettings().value(self.parent.generalSettingsSection
|
||||||
if enable_loop:
|
+ 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