From 14bd24ba233e370b44ec23cab2733289a3387ca7 Mon Sep 17 00:00:00 2001 From: sandman Date: Fri, 01 Nov 2002 12:55:33 +0000 Subject: Config ignores comment lines now (all lines that start with a '#'). This is necessary to load some pixmap themes from KDE and shouldn't change anything else ('#' not at the beginning of a line are not treated as a comment) --- diff --git a/library/config.cpp b/library/config.cpp index e07eecb..1121cd4 100644 --- a/library/config.cpp +++ b/library/config.cpp @@ -534,6 +534,10 @@ void Config::read() bool Config::parse( const QString &l ) { QString line = l.stripWhiteSpace(); + + if ( line [0] == QChar ( '#' )) + return true; // ignore comments + if ( line[ 0 ] == QChar( '[' ) ) { QString gname = line; gname = gname.remove( 0, 1 ); -- cgit v0.9.0.2