From 7370fda2c72dc953dfa644b13d175a55acd2f434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20K=C3=A4berich?= Date: Wed, 5 Mar 2025 07:57:56 +0100 Subject: [PATCH] fix de-embedding menu on macOS after loading setup (#297) --- Software/PC_Application/LibreVNA-GUI/VNA/vna.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Software/PC_Application/LibreVNA-GUI/VNA/vna.cpp b/Software/PC_Application/LibreVNA-GUI/VNA/vna.cpp index a8d7168..fa25d6c 100644 --- a/Software/PC_Application/LibreVNA-GUI/VNA/vna.cpp +++ b/Software/PC_Application/LibreVNA-GUI/VNA/vna.cpp @@ -188,8 +188,9 @@ VNA::VNA(AppWindow *window, QString name) auto menuDeembed = new QMenu("De-embedding", window); window->menuBar()->insertMenu(window->getUi()->menuWindow->menuAction(), menuDeembed); actions.insert(menuDeembed->menuAction()); - auto confDeembed = menuDeembed->addAction("Setup..."); + auto confDeembed = new QAction("Setup...", menuDeembed); confDeembed->setMenuRole(QAction::NoRole); + menuDeembed->addAction(confDeembed); connect(confDeembed, &QAction::triggered, &deembedding, &Deembedding::configure); enableDeembeddingAction = menuDeembed->addAction("De-embed VNA samples");