From 201a22b96fc81cf9f0d7c99321905904bfc258ba Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sat, 11 Jul 2009 10:31:32 +0000 Subject: [PATCH] * GuiDocument.cpp: - clear changedBranches_ cache after branches were changed. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30470 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiDocument.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index 671a1dc5d8..60502862a4 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -2452,6 +2452,9 @@ void GuiDocument::paramsToDialog() // Make sure that the bc is in the INITIAL state if (bc().policy().buttonStatus(ButtonPolicy::RESTORE)) bc().restore(); + + // clear changed branches cache + changedBranches_.clear(); } @@ -2561,7 +2564,6 @@ bool GuiDocument::initialiseParams(string const &) //selected, and that we don't have conflicts. If so, we could //at least pop up a warning. paramsToDialog(); - changedBranches_.clear(); return true; } @@ -2642,6 +2644,8 @@ void GuiDocument::dispatchParams() // rename branches in the document executeBranchRenaming(); + // and clear changed branches cache + changedBranches_.clear(); // Apply the BufferParams. Note that this will set the base class // and then update the buffer's layout. -- 2.39.2