Bugzilla – Attachment 173325 Details for
Bug 309452
YaST control center shows empty section
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
[patch]
patch
bug309452.diff (text/plain), 1.02 KB, created by
Thomas Göttlicher
on 2007-09-19 12:46:23 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Thomas Göttlicher
Created:
2007-09-19 12:46:23 UTC
Size:
1.02 KB
patch
obsolete
>Index: yastmodules.h >=================================================================== >--- yastmodules.h (revision 40963) >+++ yastmodules.h (working copy) >@@ -67,6 +67,9 @@ > void dumpModules(); > void dumpGroups(); > >+ // Remove groups that don't contain any modules >+ void removeEmptyGroups(); >+ > const QString* getErrorString() const; > > signals: >Index: yastmodules.cpp >=================================================================== >--- yastmodules.cpp (revision 40963) >+++ yastmodules.cpp (working copy) >@@ -77,6 +77,8 @@ > { > groupList.sort(); > modList.sort(); >+ >+ removeEmptyGroups(); > emit modulesReady(); > #if 0 > dumpModules(); >@@ -437,7 +439,22 @@ > } > } > >+void YModules::removeEmptyGroups() >+{ >+ GroupListIterator it( groupList ); > >+ while ( *it ) >+ { >+ if (it.current()->isEmpty() ) >+ { >+ printf( "Empty group \"%s\" removed.\n", (const char *) (*it)->getRawName() ); >+ groupList.remove(it); >+ } >+ ++it; >+ } >+} >+ >+ > void YModules::runModule( const YMod* module) > { > if (!module)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 309452
:
163212
| 173325