mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-05 06:25:16 +00:00
prevent crash when device disconnects while a dialog acquired control
This commit is contained in:
parent
2bbb8792d8
commit
15d893d3cc
1 changed files with 3 additions and 1 deletions
|
|
@ -74,7 +74,9 @@ void ModeHandler::activate(Mode * mode)
|
|||
|
||||
void ModeHandler::deactivate(Mode* mode)
|
||||
{
|
||||
mode->deactivate();
|
||||
if(mode) {
|
||||
mode->deactivate();
|
||||
}
|
||||
activeMode = nullptr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue