Fix #1695674 [Add cancel button to Fetch news screen](https://bugs.launchpad.net/calibre/+bug/1695674)

This commit is contained in:
Kovid Goyal 2017-06-04 05:59:13 +05:30
parent 7bf4278868
commit 5a7d965484
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -366,7 +366,7 @@ class SchedulerDialog(QDialog):
b.setToolTip(_("Download all scheduled news sources at once"))
b.clicked.connect(self.download_all_clicked)
self.l.addWidget(b, 3, 0, 1, 1)
self.bb = bb = QDialogButtonBox(QDialogButtonBox.Save, self)
self.bb = bb = QDialogButtonBox(QDialogButtonBox.Save | QDialogButtonBox.Cancel, self)
bb.accepted.connect(self.accept), bb.rejected.connect(self.reject)
self.download_button = b = bb.addButton(_('&Download now'), bb.ActionRole)
b.setIcon(QIcon(I('arrow-down.png'))), b.setVisible(False)