[PATCH] Allow reading of values on invalid KConfigGroups

Oswald Buddenhagen ossi at kde.org
Tue Feb 24 08:58:27 GMT 2009


On Mon, Feb 23, 2009 at 10:02:26PM +0100, Sebastian TrĂ¼g wrote:
> The attached patch allows to read values from invalid KConfigGroups instead of 
> throughing an assert. This allows to reuse typical loadSettings(const 
> KConfigGroup&) methods for loading of defaults. In my case it allowed to 
> remove a lot of code duplication from K3b.
> 
> Comments?
> 
+1 as far as i'm concerned.

btw, it makes sense to create such patches with diff -b. if you have a
minor glitch somewhere, nobody would be able to spot it with the patch
being as is.
a copy without -b to check the indentation is needed as well, of course.
:)




More information about the kde-core-devel mailing list