Clear the menu before parsing it. This doesn't do any sort of caching, but maybe...
authorScott Moynes <smoynes@nexus.carleton.ca>
Mon, 3 Feb 2003 20:05:55 +0000 (20:05 +0000)
committerScott Moynes <smoynes@nexus.carleton.ca>
Mon, 3 Feb 2003 20:05:55 +0000 (20:05 +0000)
src/Pipemenu.cc

index eff885f0b65ddc1f06d400427f150b7798446501..6ebdb823d7616ee2d1096d4e5637994c268b2f6c 100644 (file)
@@ -57,6 +57,7 @@ bool Pipemenu::readPipe() {
   if (file != NULL)
   {
     printf("popen %s\n", _command.c_str());
+    clearMenu();
     getScreen()->parseMenuFile(file, this);
     pclose(file);
     return true;