mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-09 06:06:24 +01:00
Move compile-time testing of crash report support out of Experimental.h
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#include "../AudacityLogger.h"
|
||||
#include "../AudioIOBase.h"
|
||||
#include "../CommonCommandFlags.h"
|
||||
#include "../CrashReport.h"
|
||||
#include "../CrashReport.h" // for HAS_CRASH_REPORT
|
||||
#include "../FileNames.h"
|
||||
#include "../HelpText.h"
|
||||
#include "../Menus.h"
|
||||
@@ -26,10 +26,6 @@
|
||||
#include "../widgets/AudacityMessageBox.h"
|
||||
#include "../widgets/HelpSystem.h"
|
||||
|
||||
#if defined(EXPERIMENTAL_CRASH_REPORT)
|
||||
#include <wx/debugrpt.h>
|
||||
#endif
|
||||
|
||||
// private helper classes and functions
|
||||
namespace {
|
||||
|
||||
@@ -353,7 +349,7 @@ void OnShowLog( const CommandContext &context )
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(EXPERIMENTAL_CRASH_REPORT)
|
||||
#if defined(HAS_CRASH_REPORT)
|
||||
void OnCrashReport(const CommandContext &WXUNUSED(context) )
|
||||
{
|
||||
// Change to "1" to test a real crash
|
||||
@@ -523,7 +519,7 @@ BaseItemSharedPtr HelpMenu()
|
||||
#endif
|
||||
Command( wxT("Log"), XXO("Show &Log..."), FN(OnShowLog),
|
||||
AlwaysEnabledFlag ),
|
||||
#if defined(EXPERIMENTAL_CRASH_REPORT)
|
||||
#if defined(HAS_CRASH_REPORT)
|
||||
Command( wxT("CrashReport"), XXO("&Generate Support Data..."),
|
||||
FN(OnCrashReport), AlwaysEnabledFlag )
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user