]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_main.C
Fix bug 2485 and crash on middle mouse paste on math
[lyx.git] / src / lyx_main.C
index 5fe670ca1eeecfeacf0fbf5ffb0a4194cbe52f6c..c61b15cd27aca7d698c085dd626eb00d884528b8 100644 (file)
@@ -30,6 +30,7 @@
 #include "language.h"
 #include "session.h"
 #include "LColor.h"
+#include "lyx_cb.h"
 #include "lyxfunc.h"
 #include "lyxlex.h"
 #include "lyxrc.h"
@@ -87,8 +88,6 @@ using std::system;
 #endif
 
 
-extern void QuitLyX(bool);
-
 extern LyXServer * lyxserver;
 
 // This is the global bufferlist object
@@ -277,7 +276,7 @@ void LyX::priv_exec(int & argc, char * argv[])
                if (last_loaded) {
                        bool success = false;
                        if (last_loaded->dispatch(batch_command, &success)) {
-                               QuitLyX(false);
+                               quitLyX(false);
                                exit(!success);
                        }
                }
@@ -288,7 +287,7 @@ void LyX::priv_exec(int & argc, char * argv[])
                lyx_gui::start(batch_command, files);
        else {
                // Something went wrong above
-               QuitLyX(false);
+               quitLyX(false);
                exit(EXIT_FAILURE);
        }
 }