mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
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:
parent
415707befd
commit
09f0e5bbb3
@ -313,20 +313,6 @@ Buffer::~Buffer()
|
||||
d->children_positions.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()) {
|
||||
Alert::warning(_("Could not remove temporary directory"),
|
||||
bformat(_("Could not remove the temporary directory %1$s"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user