This commit is contained in:
Kovid Goyal 2016-09-23 08:13:34 +05:30
parent 73585a5dc0
commit d61b618421

View File

@ -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'),