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;
|
currentModeIndex = int(modes.size()) - 1;
|
||||||
connect(mode, &Mode::statusbarMessage, this, &ModeHandler::setStatusBarMessageChanged);
|
connect(mode, &Mode::statusbarMessage, this, &ModeHandler::setStatusBarMessageChanged);
|
||||||
|
|
||||||
// auto m = getMode(currentModeIndex);
|
auto m = getMode(currentModeIndex);
|
||||||
// activate(m);
|
activate(m);
|
||||||
|
|
||||||
emit ModeCreated(currentModeIndex);
|
emit ModeCreated(currentModeIndex);
|
||||||
return (currentModeIndex);
|
return (currentModeIndex);
|
||||||
|
Loading…
Reference in New Issue
Block a user