]> git.lyx.org Git - lyx.git/blobdiff - src/LyX.h
* There are cases where updateLabels is not called because no
[lyx.git] / src / LyX.h
index 5d0cf3340c696e3e1758163aa9a5e5111002020a..fa3c99d617adfe61890e33beba52a76c48535940 100644 (file)
--- a/src/LyX.h
+++ b/src/LyX.h
@@ -54,6 +54,11 @@ public:
        /// Execute LyX.
        int exec(int & argc, char * argv[]);
 
+       /// Try to exit LyX properly.
+       /// \p exit_code is 0 by default, if a non zero value is passed,
+       /// emergencyCleanup() will be called before exiting.
+       void exit(int exit_code = 0) const;
+
        static LyX & ref();
        static LyX const & cref();