use the same call as in the Qt sources

This commit is contained in:
M2j 2010-12-09 00:33:38 +01:00
parent c33654c68c
commit b465d763cd
1 changed files with 2 additions and 3 deletions

View File

@ -131,14 +131,13 @@ class SongImportForm(QtGui.QWizard, Ui_SongImportWizard):
def reject(self): def reject(self):
""" """
Stop the import on pressing the cancel or close button. Stop the import on cancel button, close button or ESC key.
""" """
log.debug('Import canceled by user.') log.debug('Import canceled by user.')
if self.currentId() == 2: if self.currentId() == 2:
Receiver.send_message(u'songs_stop_import') Receiver.send_message(u'songs_stop_import')
else: else:
self.hide() self.done(QtGui.QDialog.Rejected)
self.setResult(-1)
def validateCurrentPage(self): def validateCurrentPage(self):
""" """