Bug fix for Qt GUI crash upon a 2nd CDL window open.
This commit is contained in:
parent
ea9874c587
commit
494c7ca5b5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue