diff options
author | fluxgen <fluxgen> | 2002-01-10 14:24:09 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-01-10 14:24:09 (GMT) |
commit | bdc25f3fc93d425d73f8dbb8087368dce6a49124 (patch) | |
tree | 27be03ad9f72986ebff523b39b2723b4e41b7b67 | |
parent | 2ea94bb32245834e3a5b1e836a96109f45210c35 (diff) | |
download | fluxbox-bdc25f3fc93d425d73f8dbb8087368dce6a49124.zip fluxbox-bdc25f3fc93d425d73f8dbb8087368dce6a49124.tar.bz2 |
fixed so we can comment lines in configfile
-rw-r--r-- | src/Keys.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Keys.cc b/src/Keys.cc index 5db7f69..92fa617 100644 --- a/src/Keys.cc +++ b/src/Keys.cc | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | //$Id: Keys.cc,v 1.7 2002/01/09 14:11:20 fluxgen Exp $ | 22 | //$Id: Keys.cc,v 1.8 2002/01/10 14:24:09 fluxgen Exp $ |
23 | 23 | ||
24 | #ifdef HAVE_CONFIG_H | 24 | #ifdef HAVE_CONFIG_H |
25 | # include "config.h" | 25 | # include "config.h" |
@@ -200,7 +200,9 @@ bool Keys::load(char *filename) { | |||
200 | //must have at least 1 argument | 200 | //must have at least 1 argument |
201 | if (val.size()<=0) | 201 | if (val.size()<=0) |
202 | continue; | 202 | continue; |
203 | 203 | ||
204 | if (val[0][0]=='#') //the line is commented | ||
205 | continue; | ||
204 | 206 | ||
205 | unsigned int key=0, mod=0; | 207 | unsigned int key=0, mod=0; |
206 | char keyarg=0; | 208 | char keyarg=0; |