--- a/homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsaddmodeproxymodel.cpp Mon Sep 27 11:52:00 2010 +0300
+++ b/homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsaddmodeproxymodel.cpp Wed Oct 06 16:06:24 2010 +0300
@@ -133,8 +133,7 @@
}
QList< QSharedPointer<CaEntry> > entries =
CaService::instance()->getEntries(query);
- if( entries.count() > 0 )
- {
+ if (entries.count() > 0) {
result = entries[0]->id();
}
return result;
@@ -147,7 +146,8 @@
\param preferences widget preferences.
*/
void HsAddModeProxyModel::updateCacheOnAddWidget(const QString &uri,
- const QVariantHash &preferences){
+ const QVariantHash &preferences)
+{
if (uri == Hs::HS_WIDGET_URI_ATTRIBUTE_CWRT_VALUE) {
int entryId = findCwrtWidgetEntryId(preferences);
if (!mCwrtWidgetCache.value(entryId) ) {
@@ -202,5 +202,6 @@
mCwrtWidgetCache.insert(entry.id(),
HsAppLibStateUtils::isCWRTWidgetOnHomeScreen(&entry));
}
+ invalidateFilter();
}