From b3aa2bfdd19f17b739ae38af8ec7665c8e243d4a Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Mon, 14 Mar 2011 08:49:54 +0200 Subject: [PATCH] Removed some unnecessary comments. --- openlp/core/ui/firsttimeform.py | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/openlp/core/ui/firsttimeform.py b/openlp/core/ui/firsttimeform.py index c02da2179..907a58819 100644 --- a/openlp/core/ui/firsttimeform.py +++ b/openlp/core/ui/firsttimeform.py @@ -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: