-rw-r--r-- | core/pim/today/today.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index 066a5a8..2095174 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp @@ -209,20 +209,18 @@ void Today::draw() { uint count = 0; TodayPlugin plugin; for ( uint i = 0; i < pluginList.count(); i++ ) { plugin = pluginList[i]; if ( plugin.active ) { qDebug( plugin.name + " is ACTIVE " ); - // QHBoxLayout* plugLayout = new QHBoxLayout( this ); plugin.guiBox->show(); } else { - // plugin.guiWidget->hide(); qDebug( plugin.name + " is INACTIVE" ); plugin.guiBox->hide(); } count++; } if ( count == 0 ) { QLabel *noPluginsActive = new QLabel( this ); @@ -264,28 +262,30 @@ void Today::startConfig() { for ( confWidget = configWidgetList.first(); confWidget != 0; confWidget = configWidgetList.next() ) { confWidget->writeConfig(); } init(); TodayPlugin plugin; + QValueList<TodayPlugin> plugList; for ( uint i = 0; i < pluginList.count(); i++ ) { plugin = pluginList[i]; if ( m_excludeApplets.grep( plugin.name ).isEmpty() ) { qDebug("CONFIG " + plugin.name + " ACTIVE"); plugin.active = true; } else { qDebug("CONFIG " + plugin.name + " INACTIVE"); - plugin.active = false; } + plugList.append( plugin ); } + pluginList = plugList; draw(); } } void Today::startAddressbook() { QCopEnvelope e( "QPE/System", "execute(QString)" ); @@ -303,15 +303,15 @@ void Today::editCard() { } QCopEnvelope v( "QPE/Addressbook", "editPersonalAndClose()" ); } /* * launches an App */ void Today::launchApp( QString appName ) { - QCopEnvelope e( "QPE/System", "execute(QString)" ); - e << QString( appName ); + QCopEnvelope e( "QPE/System", "execute(QString)" ); + e << QString( appName ); } Today::~Today() { } |