diff -r 0ed94ceaa377 -r cb62a4f66ebe webengine/widgetengine/src/WidgetEngineBridge.cpp --- a/webengine/widgetengine/src/WidgetEngineBridge.cpp Thu Dec 17 09:20:16 2009 +0200 +++ b/webengine/widgetengine/src/WidgetEngineBridge.cpp Thu Jan 07 13:31:38 2010 +0200 @@ -15,8 +15,6 @@ * */ - - // INCLUDE FILES #include "WidgetEngineBridge.h" #include "WidgetEventHandler.h" @@ -25,7 +23,7 @@ #include #include #include -#include "brctlinterface.h" +#include #include "WidgetEngineCallbacks.h" #include "WidgetClient.h" @@ -172,7 +170,11 @@ switch( aParam ) { case TBrCtlDefs::EWidgetBasePath: { m_preferences->setBasePathL(aValue); - m_preferences->loadL(); + TRAPD(err, m_preferences->loadL()); + if(err!=KErrNone) + { + m_preferences->deleteAllPrefFiles(); + } break; } case TBrCtlDefs::EWidgetBundleId: { @@ -321,3 +323,4 @@ //END OF FILE +