From e58a76c4884fbf812333fda9c959877caa1163f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20K=C3=A4berich?= Date: Sun, 30 Oct 2022 13:19:02 +0100 Subject: [PATCH] activate mode when created --- Software/PC_Application/LibreVNA-GUI/modehandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Software/PC_Application/LibreVNA-GUI/modehandler.cpp b/Software/PC_Application/LibreVNA-GUI/modehandler.cpp index d251113..c927e4e 100644 --- a/Software/PC_Application/LibreVNA-GUI/modehandler.cpp +++ b/Software/PC_Application/LibreVNA-GUI/modehandler.cpp @@ -32,8 +32,8 @@ int ModeHandler::addMode(Mode *mode) currentModeIndex = int(modes.size()) - 1; connect(mode, &Mode::statusbarMessage, this, &ModeHandler::setStatusBarMessageChanged); -// auto m = getMode(currentModeIndex); -// activate(m); + auto m = getMode(currentModeIndex); + activate(m); emit ModeCreated(currentModeIndex); return (currentModeIndex);