mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
...
This commit is contained in:
parent
73585a5dc0
commit
d61b618421
@ -205,8 +205,8 @@ class Boss(QObject):
|
|||||||
def _check_before_open(self):
|
def _check_before_open(self):
|
||||||
if self.gui.action_save.isEnabled():
|
if self.gui.action_save.isEnabled():
|
||||||
if not question_dialog(self.gui, _('Unsaved changes'), _(
|
if not question_dialog(self.gui, _('Unsaved changes'), _(
|
||||||
'The current book has unsaved changes. If you open a new book, they will be lost'
|
'The current book has unsaved changes. If you open a new book, they will be lost.'
|
||||||
' are you sure you want to proceed?')):
|
' Are you sure you want to proceed?')):
|
||||||
return
|
return
|
||||||
if self.save_manager.has_tasks:
|
if self.save_manager.has_tasks:
|
||||||
return info_dialog(self.gui, _('Cannot open'),
|
return info_dialog(self.gui, _('Cannot open'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user