From fde005f4cbbbc4449dd6b022de6f0ec0da0bedb3 Mon Sep 17 00:00:00 2001 From: Johannes Schultz Date: Fri, 29 Nov 2024 17:06:45 +0000 Subject: [PATCH] [Ref] Small cleanup. git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@22348 56274372-70c3-4bfc-bfc3-4c3a0b034d27 --- mptrack/MainFrm.cpp | 3 +++ mptrack/Mptrack.cpp | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mptrack/MainFrm.cpp b/mptrack/MainFrm.cpp index 08bbac2dfe..80d6b8e945 100644 --- a/mptrack/MainFrm.cpp +++ b/mptrack/MainFrm.cpp @@ -202,6 +202,7 @@ CMainFrame::CMainFrame() m_szInfoText[0] = 0; m_szXInfoText[0]= 0; + InitCommonControls(); MemsetZero(gcolrefVuMeter); } @@ -260,6 +261,8 @@ void CMainFrame::Initialize() AddToolBarMenuEntries(*toolbarMenu); } + m_InputHandler->UpdateMainMenu(); + #ifdef MPT_ENABLE_PLAYBACK_TEST_MENU CMenu debugMenu; debugMenu.CreatePopupMenu(); diff --git a/mptrack/Mptrack.cpp b/mptrack/Mptrack.cpp index 23af0f9930..721489cfcf 100644 --- a/mptrack/Mptrack.cpp +++ b/mptrack/Mptrack.cpp @@ -1384,8 +1384,6 @@ BOOL CTrackApp::InitInstanceImpl(CMPTCommandLineInfo &cmdInfo) // Initialize CMainFrame pMainFrame->Initialize(); - InitCommonControls(); - pMainFrame->GetInputHandler()->UpdateMainMenu(); // Dispatch commands specified on the command line if(cmdInfo.m_nShellCommand == CCommandLineInfo::FileNew)