From: Scott Moynes Date: Mon, 3 Feb 2003 20:05:55 +0000 (+0000) Subject: Clear the menu before parsing it. This doesn't do any sort of caching, but maybe... X-Git-Tag: openbox-2_3_0^2~4 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=db37a28f706d2772e5a9cb46631e4bcc3a4d387c;p=dana%2Fopenbox.git Clear the menu before parsing it. This doesn't do any sort of caching, but maybe that isn't such a big deal. --- diff --git a/src/Pipemenu.cc b/src/Pipemenu.cc index eff885f0..6ebdb823 100644 --- a/src/Pipemenu.cc +++ b/src/Pipemenu.cc @@ -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;