void PluginSelectDialog::saveAsDefault() { kdDebug(9000) << k_funcinfo << endl; ProfileEngine & engine = PluginController::getInstance()->engine(); Profile * profile = engine.findProfile( PluginController::getInstance()->currentProfile() ); profile->clearList( Profile::ExplicitDisable ); QListViewItemIterator it( plugin_list ); while ( it.current() ) { PluginItem * item = static_cast<PluginItem*>( it.current() ); if ( !item->isOn() ) { profile->addEntry( Profile::ExplicitDisable, item->name() ); } ++it; } profile->save(); }