Revert r31117 to prepare for proper fix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31258 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-09-02 15:41:53 +00:00
parent 415707befd
commit 09f0e5bbb3

View File

@ -313,20 +313,6 @@ Buffer::~Buffer()
d->children_positions.clear(); d->children_positions.clear();
d->position_to_children.clear(); d->position_to_children.clear();
if (!isClean()) {
docstring const text = bformat(_("The document %1$s has unsaved changes."
"\n\nDo you want to save the document or discard the changes?"), from_utf8(absFileName()));
int const ret = Alert::prompt(_("Save changed document?"),
text, 0, 2, _("&Save"), _("&Discard"));
switch (ret) {
case 0:
save();
break;
case 1:
break;
}
}
if (!d->temppath.destroyDirectory()) { if (!d->temppath.destroyDirectory()) {
Alert::warning(_("Could not remove temporary directory"), Alert::warning(_("Could not remove temporary directory"),
bformat(_("Could not remove the temporary directory %1$s"), bformat(_("Could not remove the temporary directory %1$s"),