From: Marius Nita Date: Fri, 31 Jan 2003 17:44:11 +0000 (+0000) Subject: this is a poop bug - find another way to do whatever you are trying to do - it busts... X-Git-Tag: openbox-2_3_0^2~8 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=a23fe11c45b67fb99b681a9581c4048e1fb6e8d2;p=dana%2Fopenbox.git this is a poop bug - find another way to do whatever you are trying to do - it busts [include] --- diff --git a/src/Screen.cc b/src/Screen.cc index 18ecd5a6..8def765b 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -2085,7 +2085,7 @@ size_t string_within(char begin, char end, bool BScreen::parseMenuFile(FILE *file, Rootmenu *menu) { char line[1024], keyword[1024], label[1024], command[1024]; - bool done = False, readData = False; + bool done = False; while (! (done || feof(file))) { memset(line, 0, 1024); @@ -2094,11 +2094,6 @@ bool BScreen::parseMenuFile(FILE *file, Rootmenu *menu) { if (! fgets(line, 1024, file)) continue; - - if (! readData) { - menu->clearMenu(); - readData = True; - } if (line[0] == '#') // comment, skip it continue;