Ticket #39787: patch-wxStandardPaths.diff
File patch-wxStandardPaths.diff, 1.5 KB (added by mojca (Mojca Miklavec), 11 years ago) |
---|
-
pgadmin/pgAdmin3.cpp
old new wxString pgAdmin3::LocatePath(const wxString &pathToFind, const bool isFile) 1304 1304 // When using wxStandardPaths on OSX, wx default to the unix, 1305 1305 // not to the mac variants. Therefore, we request wxStandardPathsCF 1306 1306 // directly. 1307 wxStandardPaths CF stdPaths;1307 wxStandardPaths stdPaths = wxStandardPaths::Get(); 1308 1308 dataDir = stdPaths.GetDataDir() ; 1309 1309 1310 1310 #else // other *ixes -
pgadmin/utils/sysSettings.cpp
old new wxString sysSettings::GetConfigFile(configFileName cfgname) 740 740 { 741 741 if (cfgname == PGPASS) 742 742 { 743 wxStandardPaths stdp ;743 wxStandardPaths stdp = wxStandardPaths::Get(); 744 744 wxString fname = stdp.GetUserConfigDir(); 745 745 #ifdef WIN32 746 746 fname += wxT("\\postgresql"); … … wxString sysSettings::GetFavouritesFile() 770 770 { 771 771 wxString s, tmp; 772 772 773 wxStandardPaths stdp ;773 wxStandardPaths stdp = wxStandardPaths::Get(); 774 774 tmp = stdp.GetUserConfigDir(); 775 775 #ifdef WIN32 776 776 tmp += wxT("\\postgresql"); … … wxString sysSettings::GetMacrosFile() 791 791 { 792 792 wxString s, tmp; 793 793 794 wxStandardPaths stdp ;794 wxStandardPaths stdp = wxStandardPaths::Get(); 795 795 tmp = stdp.GetUserConfigDir(); 796 796 #ifdef WIN32 797 797 tmp += wxT("\\postgresql"); … … wxString sysSettings::GetHistoryFile() 812 812 { 813 813 wxString s, tmp; 814 814 815 wxStandardPaths stdp ;815 wxStandardPaths stdp = wxStandardPaths::Get(); 816 816 tmp = stdp.GetUserConfigDir(); 817 817 #ifdef WIN32 818 818 tmp += wxT("\\postgresql");