mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-01-26 02:14:14 +01:00
activate mode when created
This commit is contained in:
parent
6c1bc842f0
commit
e58a76c488
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue