1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-26 16:03:53 +02: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")); associateFileTypes.SetName(root_key + wxT("Audacity.Project\\shell\\open\\command"));
wxString tmpRegAudPath; wxString tmpRegAudPath;
if(associateFileTypes.Exists()) { if(associateFileTypes.Exists()) {
tmpRegAudPath = wxString(associateFileTypes).Lower(); tmpRegAudPath = associateFileTypes.QueryDefaultValue().Lower();
} }
if (!associateFileTypes.Exists() || if (!associateFileTypes.Exists() ||
(tmpRegAudPath.Find(wxT("audacity.exe")) >= 0)) { (tmpRegAudPath.Find(wxT("audacity.exe")) >= 0)) {