forked from openlp/openlp
Stop song database overwrite
This commit is contained in:
parent
f1f6c6bd3e
commit
faa0d2740a
@ -83,9 +83,13 @@ class FirstTimeForm(QtGui.QWizard, Ui_FirstTimeWizard):
|
|||||||
if self.webAccess:
|
if self.webAccess:
|
||||||
self.internetGroupBox.setVisible(True)
|
self.internetGroupBox.setVisible(True)
|
||||||
self.noInternetLabel.setVisible(False)
|
self.noInternetLabel.setVisible(False)
|
||||||
treewidgetitem = QtGui.QTreeWidgetItem(self.selectionTreeWidget)
|
# If songs database exists do not allow a copy
|
||||||
treewidgetitem.setText(0, self.songsText)
|
songs = os.path.join(AppLocation.get_section_data_path(u'songs'),
|
||||||
self._loadChild(treewidgetitem, u'songs', u'languages', u'songs')
|
u'songs.sqlite')
|
||||||
|
if not os.path.exists(songs):
|
||||||
|
treewidgetitem = QtGui.QTreeWidgetItem(self.selectionTreeWidget)
|
||||||
|
treewidgetitem.setText(0, self.songsText)
|
||||||
|
self._loadChild(treewidgetitem, u'songs', u'languages', u'songs')
|
||||||
treewidgetitem = QtGui.QTreeWidgetItem(self.selectionTreeWidget)
|
treewidgetitem = QtGui.QTreeWidgetItem(self.selectionTreeWidget)
|
||||||
treewidgetitem.setText(0, self.biblesText)
|
treewidgetitem.setText(0, self.biblesText)
|
||||||
self._loadChild(treewidgetitem, u'bibles', u'translations',
|
self._loadChild(treewidgetitem, u'bibles', u'translations',
|
||||||
|
Loading…
Reference in New Issue
Block a user