From 5c218336f0889a4d37dd09fcc3fcf7c14b50aeec Mon Sep 17 00:00:00 2001 From: twanvl Date: Fri, 7 Jan 2011 19:19:52 +0000 Subject: [PATCH] no menu item for profiler when it is disabled git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1584 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/gui/set/window.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/gui/set/window.cpp b/src/gui/set/window.cpp index 3bfb839a..5c56c8a6 100644 --- a/src/gui/set/window.cpp +++ b/src/gui/set/window.cpp @@ -588,10 +588,12 @@ void SetWindow::onFileCheckUpdates(wxCommandEvent&) { //Destroy(); } -void show_profiler_window(wxWindow* parent); -void SetWindow::onFileProfiler(wxCommandEvent&) { - show_profiler_window(this); -} +#if USE_SCRIPT_PROFILING + void show_profiler_window(wxWindow* parent); + void SetWindow::onFileProfiler(wxCommandEvent&) { + show_profiler_window(this); + } +#endif void SetWindow::onFilePrint(wxCommandEvent&) { ExportCardSelectionChoices choices; @@ -752,7 +754,9 @@ BEGIN_EVENT_TABLE(SetWindow, wxFrame) EVT_MENU (ID_FILE_EXPORT_APPR, SetWindow::onFileExportApprentice) EVT_MENU (ID_FILE_EXPORT_MWS, SetWindow::onFileExportMWS) EVT_MENU (ID_FILE_CHECK_UPDATES, SetWindow::onFileCheckUpdates) +#if USE_SCRIPT_PROFILING EVT_MENU (ID_FILE_PROFILER, SetWindow::onFileProfiler) +#endif // EVT_MENU (ID_FILE_INSPECT, SetWindow::onFileInspect) EVT_MENU (ID_FILE_PRINT, SetWindow::onFilePrint) EVT_MENU (ID_FILE_PRINT_PREVIEW, SetWindow::onFilePrintPreview)