From e59bfcc87228b304b6f316d029f25a9e4c9a1947 Mon Sep 17 00:00:00 2001 From: Carlo Bramini <30959007+carlo-bramini@users.noreply.github.com> Date: Mon, 25 May 2020 08:37:55 +0200 Subject: [PATCH] [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. --- src/AudacityApp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AudacityApp.cpp b/src/AudacityApp.cpp index 8e3ff0ae3..5c945d53c 100644 --- a/src/AudacityApp.cpp +++ b/src/AudacityApp.cpp @@ -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)) {