From b465d763cda7efe8e6852bf61dbfdb589ad6dd30 Mon Sep 17 00:00:00 2001 From: M2j Date: Thu, 9 Dec 2010 00:33:38 +0100 Subject: [PATCH] use the same call as in the Qt sources --- openlp/plugins/songs/forms/songimportform.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/openlp/plugins/songs/forms/songimportform.py b/openlp/plugins/songs/forms/songimportform.py index a2a915efd..cade0254a 100644 --- a/openlp/plugins/songs/forms/songimportform.py +++ b/openlp/plugins/songs/forms/songimportform.py @@ -131,14 +131,13 @@ class SongImportForm(QtGui.QWizard, Ui_SongImportWizard): 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.') if self.currentId() == 2: Receiver.send_message(u'songs_stop_import') else: - self.hide() - self.setResult(-1) + self.done(QtGui.QDialog.Rejected) def validateCurrentPage(self): """