X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FSession.cpp;h=35498bdbb479524627174c49833b0b23603d055b;hb=9439b6e6e0cf950aafe8ce8d76d380c543110db7;hp=a9b5e86f46af6ac30fcc457dbe85e6d8e9e23996;hpb=96ee270933fe88672b70eb22045b280bf9ee4d90;p=lyx.git diff --git a/src/Session.cpp b/src/Session.cpp index a9b5e86f46..35498bdbb4 100644 --- a/src/Session.cpp +++ b/src/Session.cpp @@ -55,11 +55,11 @@ void LastFilesSection::read(istream & is) if (c == '[') break; getline(is, tmp); - if (tmp == "" || tmp[0] == '#' || tmp[0] == ' ' || !absolutePath(tmp)) + FileName const file(tmp); + if (tmp == "" || tmp[0] == '#' || tmp[0] == ' ' || !file.isAbsolute()) continue; // read lastfiles - FileName const file(tmp); if (file.exists() && !file.isDirectory() && lastfiles.size() < num_lastfiles) lastfiles.push_back(file); @@ -109,10 +109,10 @@ void LastOpenedSection::read(istream & is) if (c == '[') break; getline(is, tmp); - if (tmp == "" || tmp[0] == '#' || tmp[0] == ' ' || !absolutePath(tmp)) + FileName const file(tmp); + if (tmp == "" || tmp[0] == '#' || tmp[0] == ' ' || !file.isAbsolute()) continue; - FileName const file(tmp); if (file.exists() && !file.isDirectory()) lastopened.push_back(file); else