#include <algorithm>
#include <functional>
-
-namespace lyx {
-
-using support::addName;
-using support::bformat;
-using support::FileName;
-using support::makeDisplayPath;
-using support::onlyFilename;
-using support::removeAutosaveFile;
-using support::package;
-using support::prefixIs;
-
using boost::bind;
using std::auto_ptr;
using std::back_inserter;
using std::transform;
+
+namespace lyx {
+
+using support::addName;
+using support::bformat;
+using support::FileName;
+using support::makeDisplayPath;
+using support::onlyFilename;
+using support::removeAutosaveFile;
+using support::package;
+using support::prefixIs;
+
namespace Alert = lyx::frontend::Alert;
return false;
} else if (!menuWrite(buf))
return false;
- else
- return false;
} else if (ret == 2)
return false;
-
- if (buf->isUnnamed()) {
- removeAutosaveFile(buf->fileName());
- }
+
+ removeAutosaveFile(buf->fileName());
release(buf);
return true;