@@ -398,22 +398,6 @@ void GlobalDebuggerUI::SetupMenu(UIContext* context)
398398 }, connectedAndStopped));
399399 debuggerMenu->addAction (" Toggle Breakpoint" , " Breakpoint" );
400400
401- #ifdef WIN32
402- UIAction::registerAction (" Reinstall DbgEng Redistributable" );
403- context->globalActions ()->bindAction (" Reinstall DbgEng Redistributable" , UIAction ([=](const UIActionContext& ctxt) {
404- if (!InstallDbgEngRedistributable ())
405- {
406- QMessageBox::warning (nullptr , QString (" Failed to install" ), QString (" Failed to install DbgEng redistributable. "
407- " The debugger is likely to malfunction" ));
408- }
409- else
410- {
411- QMessageBox::warning (nullptr , QString (" Successfully installed" ),
412- QString (" Successfully installed DbgEng redistributable." ));
413- }
414- }));
415- debuggerMenu->addAction (" Reinstall DbgEng Redistributable" , " Misc" );
416-
417401 UIAction::registerAction (" Connect to Debug Server" );
418402 context->globalActions ()->bindAction (" Connect to Debug Server" , UIAction ([=](const UIActionContext& ctxt) {
419403 if (!ctxt.binaryView )
@@ -460,6 +444,21 @@ void GlobalDebuggerUI::SetupMenu(UIContext* context)
460444 }, connectedToDebugServer));
461445 debuggerMenu->addAction (" Disconnect from Debug Server" , " Launch" );
462446
447+ #ifdef WIN32
448+ UIAction::registerAction (" Reinstall DbgEng Redistributable" );
449+ context->globalActions ()->bindAction (" Reinstall DbgEng Redistributable" , UIAction ([=](const UIActionContext& ctxt) {
450+ if (!InstallDbgEngRedistributable ())
451+ {
452+ QMessageBox::warning (nullptr , QString (" Failed to install" ), QString (" Failed to install DbgEng redistributable. "
453+ " The debugger is likely to malfunction" ));
454+ }
455+ else
456+ {
457+ QMessageBox::warning (nullptr , QString (" Successfully installed" ),
458+ QString (" Successfully installed DbgEng redistributable." ));
459+ }
460+ }));
461+ debuggerMenu->addAction (" Reinstall DbgEng Redistributable" , " Misc" );
463462#endif
464463}
465464
0 commit comments