forked from openlp/openlp
Two last importers, which did not stop on cancel.
This commit is contained in:
parent
bbba7203e3
commit
509bc9e704
@ -104,6 +104,8 @@ class SongShowPlusImport(SongImport):
|
||||
self.import_wizard.progressBar.setMaximum(len(self.import_source))
|
||||
|
||||
for file in self.import_source:
|
||||
if self.stop_import_flag:
|
||||
return
|
||||
self.sspVerseOrderList = []
|
||||
otherCount = 0
|
||||
otherList = {}
|
||||
|
@ -105,6 +105,8 @@ class WowImport(SongImport):
|
||||
if isinstance(self.import_source, list):
|
||||
self.import_wizard.progressBar.setMaximum(len(self.import_source))
|
||||
for file in self.import_source:
|
||||
if self.stop_import_flag:
|
||||
return
|
||||
file_name = os.path.split(file)[1]
|
||||
# Get the song title
|
||||
self.title = file_name.rpartition(u'.')[0]
|
||||
|
Loading…
Reference in New Issue
Block a user