Two last importers, which did not stop on cancel.

This commit is contained in:
Mattias Põldaru 2011-08-16 03:59:45 +03:00
parent bbba7203e3
commit 509bc9e704
2 changed files with 4 additions and 0 deletions

View File

@ -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 = {}

View File

@ -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]