]> git.lyx.org Git - features.git/commitdiff
* GuiDocument.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Sat, 11 Jul 2009 10:31:32 +0000 (10:31 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Sat, 11 Jul 2009 10:31:32 +0000 (10:31 +0000)
- 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

index 671a1dc5d8e1cd4afd323ca727888183bf88b631..60502862a4e8ab2bda4a00aafa68eaff1fcefcce 100644 (file)
@@ -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.