mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add a confirmation when closing the add a custom news source dialog. Fixes #8460 (Add custom new source interface)
This commit is contained in:
parent
ca3f2dafc5
commit
229fe3e4d2
@ -356,6 +356,13 @@ class %(classname)s(%(base_class)s):
|
|||||||
self.populate_options(AutomaticNewsRecipe)
|
self.populate_options(AutomaticNewsRecipe)
|
||||||
self.source_code.setText('')
|
self.source_code.setText('')
|
||||||
|
|
||||||
|
def reject(self):
|
||||||
|
if question_dialog(self, _('Are you sure?'),
|
||||||
|
_('You will lose any unsaved changes. To save your'
|
||||||
|
' changes, click the Add/Update recipe button.'
|
||||||
|
' Continue?'), show_copy_button=False):
|
||||||
|
ResizableDialog.reject(self)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
from calibre.gui2 import is_ok_to_use_qt
|
from calibre.gui2 import is_ok_to_use_qt
|
||||||
is_ok_to_use_qt()
|
is_ok_to_use_qt()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user