Author: tgoettlicher Date: Mon Jul 2 17:11:25 2007 New Revision: 5861 URL: http://svn.opensuse.org/viewcvs/zypp?rev=5861&view=rev Log: fixed opensuseupdater says there is one update, fires YOU, and this says there is none. (#279355) Modified: branches/SuSE-Linux-10_2-Branch/updater-kde/updater/zypp/ZYppUpdater.cpp Modified: branches/SuSE-Linux-10_2-Branch/updater-kde/updater/zypp/ZYppUpdater.cpp URL: http://svn.opensuse.org/viewcvs/zypp/branches/SuSE-Linux-10_2-Branch/updater-kde/updater/zypp/ZYppUpdater.cpp?rev=5861&r1=5860&r2=5861&view=diff ============================================================================== --- branches/SuSE-Linux-10_2-Branch/updater-kde/updater/zypp/ZYppUpdater.cpp (original) +++ branches/SuSE-Linux-10_2-Branch/updater-kde/updater/zypp/ZYppUpdater.cpp Mon Jul 2 17:11:25 2007 @@ -147,13 +147,17 @@ kdDebug() << "populating... " << _patches.count() << " patches" << endl; for ( QPtrList<ZYppPatch>::const_iterator it = _patches.begin(); it != _patches.end(); ++it ) { - QListViewItem *newItem; - newItem = new ZYppListItem( (*it), _list_view, (*it)->summary ); + if ( (*it)->category != "optional" ) + { - newItem->setText(COLUMN_TYPE, ((*it)->category == "security") ? i18n("Security") : i18n("Patch") ); - newItem->setText(COLUMN_NEW_VERSION,(*it)->edition); - //newItem->setText(COLUMN_ID, (*iter).id); - newItem->setText(COLUMN_CATALOG, (*it)->source ); + QListViewItem *newItem; + newItem = new ZYppListItem( (*it), _list_view, (*it)->summary ); + + newItem->setText(COLUMN_TYPE, (*it)->category ); + newItem->setText(COLUMN_NEW_VERSION,(*it)->edition); + //newItem->setText(COLUMN_ID, (*iter).id); + newItem->setText(COLUMN_CATALOG, (*it)->source ); + } } if ( _patches.count() > 0 ) -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org