Jean-Marc Lasgouttes wrote:
Abdelrazak Younes <[EMAIL PROTECTED]> writes:
[EMAIL PROTECTED] wrote:
Author: younes
Date: Fri Dec 7 12:57:13 2007
New Revision: 22002
+void GuiView::newDocument(string const & filename, bool from_template)
+{
+ FileName initpath;
+ Buffer * buf = buffer();
+ if (buf) {
+ FileName const trypath(buf->filePath());
+ // If directory is writeable, use this as default.
+ if (trypath.isDirWritable())
+ initpath = trypath;
+ } else
+ initpath.set(lyxrc.document_path);
+
+ // FIXME: Up to now initpath was unconditionally set to the user
document
+ // path. Is it what we want? If yes, erase the code above.
+ initpath.set(lyxrc.document_path);
Opinions?
I think keeping the current document's directory is good, especially
since we have (or should have) a Documents button in the file dialog.
OK, I'll do that.
Abdel.