For space police

This commit is contained in:
Tim Bentley 2009-09-09 19:09:17 +01:00
parent 457885019b
commit e0a2e5e1f3
2 changed files with 3 additions and 4 deletions

View File

@ -20,7 +20,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
from PyQt4 import Qt, QtCore, QtGui
from editcustomdialog import Ui_customEditDialog
from openlp.core.lib import SongXMLBuilder, SongXMLParser, Receiver, translate
from openlp.core.lib import SongXMLBuilder, SongXMLParser, Receiver, translate
from openlp.plugins.custom.lib.models import CustomSlide
class EditCustomForm(QtGui.QDialog, Ui_customEditDialog):
@ -166,10 +166,9 @@ class EditCustomForm(QtGui.QDialog, Ui_customEditDialog):
for row in range(0, self.VerseListView.count()):
tempList[row] = self.VerseListView.item(row).text()
self.VerseListView.clear()
for row in range (0, len(tempList)):
for row in range (0, len(tempList)):
self.VerseListView.addItem(tempList[row])
self.VerseListView.repaint()
self.SaveButton.setEnabled(False)
self.EditButton.setEnabled(False)

View File

@ -293,7 +293,7 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
for row in range(0, self.VerseListWidget.count()):
tempList[row] = self.VerseListWidget.item(row).text()
self.VerseListWidget.clear()
for row in range (0, len(tempList)):
for row in range (0, len(tempList)):
self.VerseListWidget.addItem(tempList[row])
self.VerseListWidget.repaint()
self.VerseEditButton.setEnabled(False)