Removed some unnecessary comments.

This commit is contained in:
Raoul Snyman 2011-03-14 08:49:54 +02:00
parent a33a13ef05
commit b3aa2bfdd1

View File

@ -235,26 +235,15 @@ class FirstTimeForm(QtGui.QWizard, Ui_FirstTimeWizard):
songs_destination = os.path.join(unicode(gettempdir()), u'openlp')
bibles_destination = AppLocation.get_section_data_path(u'bibles')
themes_destination = AppLocation.get_section_data_path(u'themes')
# Install songs
# Download songs
for i in xrange(self.songsListWidget.count()):
item = self.songsListWidget.item(i)
if item.checkState() == QtCore.Qt.Checked:
filename = item.data(QtCore.Qt.UserRole).toString()
self._incrementProgressBar(self.downloading % filename)
destination = os.path.join(songs_destination, unicode(filename))
#if os.path.exists(destination):
# if QtGui.QMessageBox.question(self,
# translate('OpenLP.FirstTimeWizard',
# 'Overwrite Existing Songs?'),
# translate('OpenLP.FirstTimeWizard', 'Your songs '
# 'database already exists and your current songs will '
# 'be permanently lost, are you sure you want to '
# 'replace it ?'),
# QtGui.QMessageBox.Yes | QtGui.QMessageBox.No,
# QtGui.QMessageBox.No) != QtGui.QMessageBox.Yes:
# continue
urllib.urlretrieve(u'%s%s' % (self.web, filename), destination)
# Install Bibles
# Download Bibles
bibles_iterator = QtGui.QTreeWidgetItemIterator(self.biblesTreeWidget)
while bibles_iterator.value():
item = bibles_iterator.value()
@ -264,7 +253,7 @@ class FirstTimeForm(QtGui.QWizard, Ui_FirstTimeWizard):
urllib.urlretrieve(u'%s%s' % (self.web, bible),
os.path.join(bibles_destination, bible))
bibles_iterator += 1
# Install themes
# Download themes
for i in xrange(self.themesListWidget.count()):
item = self.themesListWidget.item(i)
if item.checkState() == QtCore.Qt.Checked: