X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FSession.h;h=25172b3094f582e4e120f60d4f7dc1124042e3e5;hb=489b80aef4d7904d667aeb06a32f2cc4ecbb75fa;hp=7fabfa8909c7fd9adc72aea2550f0517acd7a2df;hpb=cf4088445487696a33c63b7a43c7f7e6dc0ca839;p=lyx.git diff --git a/src/Session.h b/src/Session.h index 7fabfa8909..25172b3094 100644 --- a/src/Session.h +++ b/src/Session.h @@ -106,7 +106,17 @@ class LastOpenedSection : SessionSection { public: /// - typedef std::vector LastOpened; + struct LastOpenedFile { + LastOpenedFile() : file_name(), active(false) {} + + LastOpenedFile(support::FileName file_name_, bool active_) + : file_name(file_name_), active(active_) {} + + support::FileName file_name; + bool active; + }; + /// + typedef std::vector LastOpened; public: /// @@ -121,7 +131,7 @@ public: /** add file to lastopened file list @param file filename to add */ - void add(support::FileName const & file); + void add(support::FileName const & file, bool active = false); /** clear lastopened file list */