summaryrefslogtreecommitdiff
path: root/core/pim
Unidiff
Diffstat (limited to 'core/pim') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.cpp21
1 files changed, 18 insertions, 3 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index 3eda5c0..01ef02d 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -153,5 +153,5 @@ void Today::loadPlugins() {
153 if ( (*tit).excludeRefresh ) { 153 if ( (*tit).excludeRefresh ) {
154 pluginListRefreshExclude.insert( (*tit).name , (*tit) ); 154 pluginListRefreshExclude.insert( (*tit).name , (*tit) );
155 qDebug( "Found an plug that does not want refresh feature" ); 155 qDebug( "Found an plugin that does not want refresh feature" );
156 } else { 156 } else {
157 (*tit).library->unload(); 157 (*tit).library->unload();
@@ -183,6 +183,14 @@ void Today::loadPlugins() {
183 183
184 if ( pluginListRefreshExclude.contains( (*it) ) ) { 184 if ( pluginListRefreshExclude.contains( (*it) ) ) {
185 tempList.insert( pluginListRefreshExclude[(*it)].name, pluginListRefreshExclude[(*it)] ); 185
186 qDebug( "TEST2 " + pluginListRefreshExclude[(*it)].name ); 186 // if its not in allApplets list, add it to a layout
187 if ( !m_allApplets.contains( pluginListRefreshExclude[(*it)].name ) ) {
188 qDebug( "NUGASDA" );
189 layout->addWidget( pluginListRefreshExclude[(*it)].guiBox );
190 pluginList.append( pluginListRefreshExclude[(*it)] );
191 } else {
192 tempList.insert( pluginListRefreshExclude[(*it)].name, pluginListRefreshExclude[(*it)] );
193 qDebug( "TEST2 " + pluginListRefreshExclude[(*it)].name );
194 }
187 } else { 195 } else {
188 196
@@ -198,4 +206,5 @@ void Today::loadPlugins() {
198 plugin.active = false; 206 plugin.active = false;
199 } 207 }
208
200 plugin.guiPart = plugin.iface->guiPart(); 209 plugin.guiPart = plugin.iface->guiPart();
201 plugin.excludeRefresh = plugin.guiPart->excludeFromRefresh(); 210 plugin.excludeRefresh = plugin.guiPart->excludeFromRefresh();
@@ -233,4 +242,10 @@ void Today::loadPlugins() {
233 pluginList.append( plugin ); 242 pluginList.append( plugin );
234 } 243 }
244
245 // if plugin is not yet in the list, add it to the layout too
246 if ( !m_allApplets.contains( plugin.name ) ) {
247 layout->addWidget( plugin.guiBox );
248 pluginList.append( plugin );
249 }
235 } 250 }
236 } else { 251 } else {