summaryrefslogtreecommitdiffstats
path: root/Project/GeneralPropertiesForm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project/GeneralPropertiesForm.cpp')
-rw-r--r--Project/GeneralPropertiesForm.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Project/GeneralPropertiesForm.cpp b/Project/GeneralPropertiesForm.cpp
index 2761d16..c6ef565 100644
--- a/Project/GeneralPropertiesForm.cpp
+++ b/Project/GeneralPropertiesForm.cpp
@@ -65,7 +65,9 @@ bool GeneralPropertiesForm::ValidateData()
auto checkData = m_properties->GetGeneralPropertiesData();
bool hasChanges = false;
- wxTextFile file("config.ini");
+ //wxTextFile file("config.ini");
+ wxFileName fn(wxStandardPaths::Get().GetExecutablePath());
+ wxTextFile file(fn.GetPath() + wxFileName::GetPathSeparator() + "config.ini");
if(!file.Create()) {
if(!file.Open()) {
// Fail to access the file.