]> git.lyx.org Git - lyx.git/blobdiff - src/LyX.cpp
fix a visual cursor edge-case:
[lyx.git] / src / LyX.cpp
index 2f981c518b48c773b8ea5f5d3f17ea8f02f2c245..29c8defc23149d180a26a0e89131a8d7b676848f 100644 (file)
@@ -17,7 +17,6 @@
 
 #include "LyX.h"
 
-#include "buffer_funcs.h"
 #include "Buffer.h"
 #include "BufferList.h"
 #include "CmdDef.h"
@@ -625,15 +624,6 @@ void LyX::execBatchCommands()
        else
                pimpl_->application_->restoreGuiSession();
 
-       BufferList::iterator I = theBufferList().begin();
-       BufferList::iterator end = theBufferList().end();
-       for (; I != end; ++I) {
-               Buffer * buf = *I;
-               if (buf != buf->masterBuffer())
-                       continue;
-               updateLabels(*buf);
-       }
-
        // Execute batch commands if available
        if (pimpl_->batch_command.empty())
                return;
@@ -855,7 +845,7 @@ bool LyX::init()
        pimpl_->lyxfunc_.initKeySequences(&pimpl_->toplevel_keymap_);
 
        // Read menus
-       if (!readUIFile(lyxrc.ui_file))
+       if (use_gui && !readUIFile(lyxrc.ui_file))
                return false;
 
        if (lyxerr.debugging(Debug::LYXRC))