forked from openlp/openlp
use the same call as in the Qt sources
This commit is contained in:
parent
c33654c68c
commit
b465d763cd
@ -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):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user