[PATCH 2/3] WPrefs: Save menu back to the file we read it from.

Doug Torrance <[email protected]> Sat, 19 Aug 2017 10:48:43 -0400
Newsgroups gmane.compw.window-managers.windowmaker.devel
Message-ID <[email protected]>
Previously, we saved any modifications back to WMRootMenu, regardless of
the file we read the menu from.
---
 WPrefs.app/Menu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/WPrefs.app/Menu.c b/WPrefs.app/Menu.c
index 6e682b57..3caf4975 100644
--- a/WPrefs.app/Menu.c
+++ b/WPrefs.app/Menu.c
@@ -1527,7 +1527,7 @@ static void showData(_Panel * panel)
 		}
 
 		pmenu = WMReadPropListFromFile(path);
-		wfree(path);
+		menuPath = path;
 	}
 
 	if (!pmenu || !WMIsPLArray(pmenu)) {
-- 
2.11.0


-- 
To unsubscribe, send mail to [email protected].