Revert "Fix opening files from command line"

Reverted because of
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg181795.html.

This reverts commit d1db30a188.
This commit is contained in:
Vincent van Ravesteijn 2014-01-29 20:46:29 +01:00
parent 3dec25e5a7
commit ce26efcbd4

View 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();