]> git.lyx.org Git - features.git/commitdiff
Revert "Fix opening files from command line"
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 29 Jan 2014 19:46:29 +0000 (20:46 +0100)
committerVincent van Ravesteijn <vfr@lyx.org>
Mon, 10 Mar 2014 19:05:48 +0000 (20:05 +0100)
Reverted because of
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg181795.html.

This reverts commit d1db30a188b17b88702282cd24374f6179f2789d.

src/LyX.cpp

index 99ce873b61c0394db4ea9517df9b6eb55e655a3b..b576ac05a5e2925b4a5a7c09c09ca92c7cc005f2 100644 (file)
@@ -563,10 +563,8 @@ void LyX::execCommands()
                // if some files were specified at command-line we assume that the
                // user wants to edit *these* files and not to restore the session.
                for (size_t i = 0; i != pimpl_->files_to_load_.size(); ++i) {
-                       FileName const abs_path = 
-                               support::makeAbsPath(pimpl_->files_to_load_[i]);
                        lyx::dispatch(
-                               FuncRequest(LFUN_FILE_OPEN, abs_path.absoluteFilePath()));
+                               FuncRequest(LFUN_FILE_OPEN, pimpl_->files_to_load_[i]));
                }
                // clear this list to save a few bytes of RAM
                pimpl_->files_to_load_.clear();