* src/Viewmanager.py: prompt before abandoning changes
svn: r7620
This commit is contained in:
parent
b5ba5adb46
commit
feeae34b01
@ -1,4 +1,5 @@
|
|||||||
2006-11-12 Don Allingham <don@gramps-project.org>
|
2006-11-12 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/Viewmanager.py: prompt before abandoning changes
|
||||||
* src/GrampsDb/_WriteGedcom.py: RepoRefs don't have a privacy flag
|
* src/GrampsDb/_WriteGedcom.py: RepoRefs don't have a privacy flag
|
||||||
|
|
||||||
2006-11-11 Don Allingham <don@gramps-project.org>
|
2006-11-11 Don Allingham <don@gramps-project.org>
|
||||||
|
@ -463,13 +463,24 @@ class ViewManager:
|
|||||||
"""
|
"""
|
||||||
Abandon changes and quit.
|
Abandon changes and quit.
|
||||||
"""
|
"""
|
||||||
|
from QuestionDialog import QuestionDialog2, WarningDialog
|
||||||
|
|
||||||
if self.state.db.abort_possible:
|
if self.state.db.abort_possible:
|
||||||
self.state.db.disable_signals()
|
|
||||||
while self.state.db.undo():
|
d = QuestionDialog2(
|
||||||
pass
|
_("Abort changes?"),
|
||||||
self.quit()
|
_("Aborting changes will return the database to the state "
|
||||||
|
"is was before you started this editing session."),
|
||||||
|
_("Abort changes"),
|
||||||
|
_("Cancel"))
|
||||||
|
|
||||||
|
if d.run():
|
||||||
|
self.state.db.disable_signals()
|
||||||
|
while self.state.db.undo():
|
||||||
|
pass
|
||||||
|
self.quit()
|
||||||
else:
|
else:
|
||||||
QuestionDialog.WarningDialog(
|
WarningDialog(
|
||||||
_("Cannot abandon session's changes"),
|
_("Cannot abandon session's changes"),
|
||||||
_('Changes cannot be completely abandoned because the '
|
_('Changes cannot be completely abandoned because the '
|
||||||
'number of changes made in the session exceeded the '
|
'number of changes made in the session exceeded the '
|
||||||
|
Loading…
Reference in New Issue
Block a user