Bug fix for Qt GUI crash upon a 2nd CDL window open.

This commit is contained in:
mjbudd77 2022-01-15 14:31:46 -05:00
parent ea9874c587
commit 494c7ca5b5
1 changed files with 3 additions and 0 deletions

View File

@ -293,6 +293,7 @@ CodeDataLoggerDialog_t::~CodeDataLoggerDialog_t(void)
updateTimer->stop();
//printf("Code Data Logger Window Deleted\n");
cdlWin = NULL;
}
//----------------------------------------------------
void CodeDataLoggerDialog_t::closeEvent(QCloseEvent *event)
@ -303,6 +304,7 @@ void CodeDataLoggerDialog_t::closeEvent(QCloseEvent *event)
done(0);
deleteLater();
event->accept();
cdlWin = NULL;
}
//----------------------------------------------------
void CodeDataLoggerDialog_t::closeWindow(void)
@ -312,6 +314,7 @@ void CodeDataLoggerDialog_t::closeWindow(void)
settings.setValue("cdLogger/geometry", saveGeometry());
done(0);
deleteLater();
cdlWin = NULL;
}
//----------------------------------------------------
void CodeDataLoggerDialog_t::autoSaveCdlStateChange(int state)