aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/MenuCreator.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/MenuCreator.cc b/src/MenuCreator.cc
index d973a66..a04860f 100644
--- a/src/MenuCreator.cc
+++ b/src/MenuCreator.cc
@@ -466,7 +466,6 @@ FbTk::Menu *MenuCreator::createFromFile(const string &filename, int screen_numbe
466bool MenuCreator::createFromFile(const string &filename, 466bool MenuCreator::createFromFile(const string &filename,
467 FbTk::Menu &inject_into, bool require_begin) { 467 FbTk::Menu &inject_into, bool require_begin) {
468 string real_filename = FbTk::StringUtil::expandFilename(filename); 468 string real_filename = FbTk::StringUtil::expandFilename(filename);
469 Fluxbox::instance()->saveMenuFilename(real_filename.c_str());
470 469
471 FbMenuParser parser(real_filename); 470 FbMenuParser parser(real_filename);
472 if (!parser.isLoaded()) 471 if (!parser.isLoaded())
@@ -476,6 +475,9 @@ bool MenuCreator::createFromFile(const string &filename,
476 if (require_begin && !getStart(parser, label, m_stringconvertor)) 475 if (require_begin && !getStart(parser, label, m_stringconvertor))
477 return false; 476 return false;
478 477
478 // save menu filename, so we can check if it changes
479 Fluxbox::instance()->saveMenuFilename(real_filename.c_str());
480
479 startFile(); 481 startFile();
480 parseMenu(parser, inject_into, m_stringconvertor); 482 parseMenu(parser, inject_into, m_stringconvertor);
481 endFile(); 483 endFile();