From 03259b3cebe3098be1167b8247e39d04e0b598a0 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 24 May 2012 01:56:36 +0000 Subject: [PATCH] assdraw: always write the config file to the user's config dir Originally committed to SVN as r6868. --- contrib/assdraw/src/assdraw.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/contrib/assdraw/src/assdraw.cpp b/contrib/assdraw/src/assdraw.cpp index 8224331d8..eab18a1a5 100644 --- a/contrib/assdraw/src/assdraw.cpp +++ b/contrib/assdraw/src/assdraw.cpp @@ -141,9 +141,7 @@ ASSDrawFrame::ASSDrawFrame( wxApp *app, const wxString& title, const wxPoint& po InitializeDefaultSettings(); // load config - configfile = wxFileName(::wxGetCwd(), _T("ASSDraw3.cfg")).GetFullPath(); - if (!::wxFileExists(configfile)) - configfile = wxFileName(wxStandardPaths::Get().GetUserConfigDir(), _T("ASSDraw3.cfg")).GetFullPath(); + configfile = wxFileName(wxStandardPaths::Get().GetUserConfigDir(), _T("ASSDraw3.cfg")).GetFullPath(); bool firsttime = !::wxFileExists(configfile); if (firsttime) wxFileOutputStream(configfile).Close();