From 132084b5ef40f5c6d7ed87132563731f6e2842a1 Mon Sep 17 00:00:00 2001
From: Vincent van Ravesteijn <vfr@lyx.org>
Date: Fri, 3 Dec 2010 10:16:24 +0000
Subject: [PATCH] branch: Fix bug #6952: Make the Apply button of the
 GuiCharacter? dialog buffer dependent.

see r28240.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@36677 a592a061-630c-0410-9148-cb99ea01b6c8
---
 src/frontends/qt4/GuiCharacter.cpp | 4 +++-
 status.16x                         | 3 +++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/frontends/qt4/GuiCharacter.cpp b/src/frontends/qt4/GuiCharacter.cpp
index b2a7c3d8b7..531c4632e6 100644
--- a/src/frontends/qt4/GuiCharacter.cpp
+++ b/src/frontends/qt4/GuiCharacter.cpp
@@ -252,8 +252,10 @@ static int findPos2nd(QList<P> const & vec, B const & val)
 
 void GuiCharacter::updateContents()
 {
-	if (!autoapplyCB->isChecked())
+	if (!autoapplyCB->isChecked()) {
+		bc().setValid(true);
 		return;
+	}
 	if (bufferview()->cursor().selection()) {
 		//FIXME: it would be better to check if each font attribute is constant
 		// for the selection range.
diff --git a/status.16x b/status.16x
index 10a5f68ccb..790c9f1e2b 100644
--- a/status.16x
+++ b/status.16x
@@ -87,6 +87,9 @@ What's new
 - Numbered items in insets that do not produce any output (e.g., Notes)
   no longer have a number associated with them (bug 6315).
 
+- Update the status of the button in the Text Style dialog when the
+  cursor is moved (bug 6952).
+
 
 * DOCUMENTATION AND LOCALIZATION