[yast-commit] r41539 - in /trunk/control-center: VERSION package/yast2-control-center.changes src/yastmodules.cpp src/yastmodules.h
Author: tgoettlicher Date: Wed Oct 24 14:20:31 2007 New Revision: 41539 URL: http://svn.opensuse.org/viewcvs/yast?rev=41539&view=rev Log: fixed YaST control center shows empty section (#309452) Modified: trunk/control-center/VERSION trunk/control-center/package/yast2-control-center.changes trunk/control-center/src/yastmodules.cpp trunk/control-center/src/yastmodules.h Modified: trunk/control-center/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/control-center/VERSION?rev=41539&r1=41538&r2=41539&view=diff ============================================================================== --- trunk/control-center/VERSION (original) +++ trunk/control-center/VERSION Wed Oct 24 14:20:31 2007 @@ -1 +1 @@ -2.15.5 +2.15.6 Modified: trunk/control-center/package/yast2-control-center.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/control-center/package/yast2-control-center.changes?rev=41539&r1=41538&r2=41539&view=diff ============================================================================== --- trunk/control-center/package/yast2-control-center.changes (original) +++ trunk/control-center/package/yast2-control-center.changes Wed Oct 24 14:20:31 2007 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed Oct 24 14:16:28 CEST 2007 - tgoettlicher@suse.de + +- fixed YaST control center shows empty section (#309452) +- V 2.15.6 + +------------------------------------------------------------------- Wed Oct 24 11:48:20 CEST 2007 - tgoettlicher@suse.de - fixed pixelated icons in YaST navigation (left pane) (#308641) Modified: trunk/control-center/src/yastmodules.cpp URL: http://svn.opensuse.org/viewcvs/yast/trunk/control-center/src/yastmodules.cpp?rev=41539&r1=41538&r2=41539&view=diff ============================================================================== --- trunk/control-center/src/yastmodules.cpp (original) +++ trunk/control-center/src/yastmodules.cpp Wed Oct 24 14:20:31 2007 @@ -77,6 +77,8 @@ { groupList.sort(); modList.sort(); + removeEmptyGroups(); + emit modulesReady(); #if 0 dumpModules(); @@ -437,6 +439,24 @@ } } +void YModules::removeEmptyGroups() +{ + GroupListIterator it( groupList ); + + while ( *it ) + { + if ((*it)->isEmpty() ) + { + groupList.remove(*it); + (*it)->first(); + } + else + { + ++it; + } + } +} + void YModules::runModule( const YMod* module) { Modified: trunk/control-center/src/yastmodules.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/control-center/src/yastmodules.h?rev=41539&r1=41538&r2=41539&view=diff ============================================================================== --- trunk/control-center/src/yastmodules.h (original) +++ trunk/control-center/src/yastmodules.h Wed Oct 24 14:20:31 2007 @@ -67,6 +67,9 @@ void dumpModules(); void dumpGroups(); + // Remove groups that don't contain any modules + void removeEmptyGroups(); + const QString* getErrorString() const; signals: -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
tgoettlicher@svn.opensuse.org