if (def && def->IsEnabled()) {
wxCommandEvent cevent(wxEVT_COMMAND_BUTTON_CLICKED,
def->GetId());
+--- audacity-src-1.3.2-beta/src/FileNames.cpp 2006/10/01 07:23:49 1.9
++++ audacity-src-1.3.2-beta/src/FileNames.cpp 2006/11/19 02:20:14 1.10
+@@ -72,8 +72,8 @@
+ // If there is a directory "Portable Settings" relative to the
+ // executable's EXE file, the prefs are stored in there, otherwise
+ // the prefs are stored in the user data dir provided by the OS.
+- wxFileName exePath(PlatformCompatibility::GetExecutablePath());
+- wxFileName portablePrefsPath(exePath.GetPath(), wxT("Portable Settings"));
++ wxFileName portablePrefsPath(PlatformCompatibility::GetExecutablePath());
++ portablePrefsPath.AppendDir(wxT("Portable Settings"));
+
+ if (portablePrefsPath.DirExists())
+ {