diff --git a/src/Prefs.cpp b/src/Prefs.cpp index a26448b65..8b8b6554b 100755 --- a/src/Prefs.cpp +++ b/src/Prefs.cpp @@ -326,3 +326,8 @@ bool EnumSetting::WriteInt( int code ) // you flush gPrefs afterward return false; return Write( mSymbols[index].Internal() ); } + +wxString WarningDialogKey(const wxString &internalDialogName) +{ + return wxT("/Warnings/") + internalDialogName; +} diff --git a/src/Prefs.h b/src/Prefs.h index e94d4446b..88b7651cc 100644 --- a/src/Prefs.h +++ b/src/Prefs.h @@ -191,4 +191,9 @@ private: std::unique_ptr mpImpl; }; +/// Return the config file key associated with a warning dialog identified +/// by internalDialogName. When the box is checked, the value at the key +/// becomes false. +wxString WarningDialogKey(const wxString &internalDialogName); + #endif diff --git a/src/prefs/RecordingPrefs.cpp b/src/prefs/RecordingPrefs.cpp index cb1d91465..ca6a70155 100644 --- a/src/prefs/RecordingPrefs.cpp +++ b/src/prefs/RecordingPrefs.cpp @@ -31,8 +31,6 @@ #include "../Prefs.h" #include "../ShuttleGui.h" -#include "../widgets/Warning.h" - using std::min; enum { diff --git a/src/widgets/Warning.cpp b/src/widgets/Warning.cpp index 65c987a66..3e74ec832 100644 --- a/src/widgets/Warning.cpp +++ b/src/widgets/Warning.cpp @@ -109,8 +109,3 @@ int ShowWarningDialog(wxWindow *parent, gPrefs->Flush(); return wxID_OK; } - -wxString WarningDialogKey(const wxString &internalDialogName) -{ - return wxT("/Warnings/") + internalDialogName; -} diff --git a/src/widgets/Warning.h b/src/widgets/Warning.h index 60e4de6cd..2a3730938 100644 --- a/src/widgets/Warning.h +++ b/src/widgets/Warning.h @@ -30,9 +30,4 @@ int ShowWarningDialog(wxWindow *parent, // This message appears by the checkbox: const wxString &footer = DefaultWarningFooter()); -/// Return the config file key associated with a warning dialog identified -/// by internalDialogName. When the box is checked, the value at the key -/// becomes false. -wxString WarningDialogKey(const wxString &internalDialogName); - #endif // __AUDACITY_WARNING__