1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-03 15:43:50 +01:00

[WIN32] Correctly read default value of wxRegKey entry. (#456)

Fix this build error with GCC:

../../audacity/src/AudacityApp.cpp:2347:62: error: call of overloaded 'wxString(wxRegKey&)' is ambiguous.
This commit is contained in:
Carlo Bramini
2020-05-25 08:37:55 +02:00
committed by GitHub
parent 5580ff9d2e
commit e59bfcc872

View File

@@ -2261,7 +2261,7 @@ void AudacityApp::AssociateFileTypes()
associateFileTypes.SetName(root_key + wxT("Audacity.Project\\shell\\open\\command"));
wxString tmpRegAudPath;
if(associateFileTypes.Exists()) {
tmpRegAudPath = wxString(associateFileTypes).Lower();
tmpRegAudPath = associateFileTypes.QueryDefaultValue().Lower();
}
if (!associateFileTypes.Exists() ||
(tmpRegAudPath.Find(wxT("audacity.exe")) >= 0)) {