mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
parent
a3f0ed3bc4
commit
d1db30a188
@ -563,8 +563,10 @@ 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, pimpl_->files_to_load_[i]));
|
||||
FuncRequest(LFUN_FILE_OPEN, abs_path.absoluteFilePath()));
|
||||
}
|
||||
// clear this list to save a few bytes of RAM
|
||||
pimpl_->files_to_load_.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user