Anonymous avatar 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 )
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.