From kde-commits Mon May 02 10:43:23 2005 From: Fredrik Edemar Date: Mon, 02 May 2005 10:43:23 +0000 To: kde-commits Subject: koffice/lib/kformula Message-Id: <20050502104323.4240B4A6 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=111503061719528 CVS commit by fedemar: Save the setting with m_config as David suggested. M +4 -6 kformuladocument.cc 1.76 --- koffice/lib/kformula/kformuladocument.cc #1.75:1.76 @@ -360,7 +360,6 @@ DocumentWrapper::~DocumentWrapper() } - KSimpleConfig setting("kformularc"); - setting.setGroup("general"); - setting.writeEntry("syntaxHighlighting", m_syntaxHighlightingAction->isChecked() ); + m_config->setGroup("General"); + m_config->writeEntry("syntaxHighlighting", m_syntaxHighlightingAction->isChecked() ); } @@ -372,7 +371,6 @@ void DocumentWrapper::document( Document initSymbolNamesAction(); - KSimpleConfig setting("kformularc"); - setting.setGroup("general"); - m_syntaxHighlightingAction->setChecked( setting.readBoolEntry("syntaxHighlighting", true ) ); + m_config->setGroup("General"); + m_syntaxHighlightingAction->setChecked( m_config->readBoolEntry("syntaxHighlighting", true ) ); if ( !m_syntaxHighlightingAction->isChecked() ) toggleSyntaxHighlighting();