Revert 22023 and really fix bug 4410 (http://bugzilla.lyx.org/show_bug.cgi?id=4410).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22024 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-12-08 16:36:56 +00:00
parent eb7c892f84
commit b95a68d476
2 changed files with 4 additions and 9 deletions

View File

@ -1666,6 +1666,10 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
}
updateFlags = Update::Force | Update::FitCursor;
// We are here most certainaly because of a change in the document
// It is then better to make sure that all dialogs are in sync
// with current document settings. LyXView::restartCursor() achieve this.
lyx_view_->restartCursor();
break;
}

View File

@ -13,8 +13,6 @@
#include "GuiDocument.h"
#include "GuiView.h"
#include "BranchList.h"
#include "buffer_funcs.h"
#include "Buffer.h"
@ -1295,13 +1293,6 @@ void GuiDocument::apply(BufferParams & params)
// Embedded files
// FIXME
// GuiDocument is special because some change in there might affect other
// dialogs. It is then better to make sure that all dialogs are in sync
// with current document settings.
lyxview().updateBufferDependent(true);
lyxview().updateLayoutList();
lyxview().updateToolbars();
}