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()
|
||||
else:
|
||||
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 enable_loop:
|
||||
if can_loop:
|
||||
row = 0
|
||||
else:
|
||||
pass
|
||||
row = self.previewListWidget.rowCount() - 1
|
||||
self.__checkUpdateSelectedSlide(row)
|
||||
self.slideSelected()
|
||||
|
||||
@ -959,8 +960,9 @@ class SlideController(QtGui.QWidget):
|
||||
else:
|
||||
row = self.previewListWidget.currentRow() - 1
|
||||
if row == -1:
|
||||
enable_loop = QtCore.QSettings().value(self.parent.generalSettingsSection + u'/enable slide loop', QtCore.QVariant(True)).toBool()
|
||||
if enable_loop:
|
||||
can_loop = QtCore.QSettings().value(self.parent.generalSettingsSection
|
||||
+ u'/enable slide loop', QtCore.QVariant(True)).toBool()
|
||||
if can_loop:
|
||||
row = self.previewListWidget.rowCount() - 1
|
||||
else:
|
||||
row = 0
|
||||
|
Loading…
Reference in New Issue
Block a user