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:
Josh Miller 2011-05-26 07:01:48 -04:00
parent 254bac86d4
commit 6b90adea6e
1 changed files with 4 additions and 6 deletions

View File

@ -937,10 +937,9 @@ class SlideController(QtGui.QWidget):
self.updatePreview()
else:
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 can_loop:
if QtCore.QSettings().value(self.parent.generalSettingsSection +
u'/enable slide loop', QtCore.QVariant(True)).toBool():
row = 0
else:
row = self.previewListWidget.rowCount() - 1
@ -960,9 +959,8 @@ class SlideController(QtGui.QWidget):
else:
row = self.previewListWidget.currentRow() - 1
if row == -1:
can_loop = QtCore.QSettings().value(self.parent.generalSettingsSection
+ u'/enable slide loop', QtCore.QVariant(True)).toBool()
if can_loop:
if QtCore.QSettings().value(self.parent.generalSettingsSection +
u'/enable slide loop', QtCore.QVariant(True)).toBool():
row = self.previewListWidget.rowCount() - 1
else:
row = 0