Commits

Anonymous committed 34f32a8

Use correct instance.

svn path=/trunk/kdelibs/kate/; revision=157780

Comments (0)

Files changed (1)

part/plugins/isearch/ISearchPlugin.cpp

 	, m_matchLen( 0 )
 	, m_toolBarWasHidden( false )
 {
+	setInstance( KGenericFactory<ISearchPlugin>::instance() );
+	
 	m_searchForwardAction = new KAction(
 		i18n("Search Incrementally"), CTRL+ALT+Key_F,
 		this, SLOT(slotSearchForwardAction()),
 // 	action->setChecked( m_autoWrap );
 // 	optionMenu->insert( action );
 	
-	setXMLFile( "ktexteditor_isearch/ktexteditor_isearchui.rc" );
+	setXMLFile( "ktexteditor_isearchui.rc" );
 }
 
 ISearchPlugin::~ISearchPlugin()
 
 void ISearchPlugin::readConfig()
 {
-//	KConfig config( "ktexteditor_isearchrc" );
-//	m_toolBarAction->setChecked( config.readBoolEntry( "Show Toolbar" , false ) );
+	KConfig* config = instance()->config();
+	m_toolBarAction->setChecked( config->readBoolEntry( "Show Toolbar" , false ) );
 }
 
 void ISearchPlugin::writeConfig()
 {
-//	KConfig config( "ktexteditor_isearchrc" );
-//	config.writeEntry( "Show Toolbar", m_toolBarAction->isChecked() );
+	KConfig* config = instance()->config();
+	config->writeEntry( "Show Toolbar", m_toolBarAction->isChecked() );
 }
 
 void ISearchPlugin::setCaseSensitive( bool caseSensitive )