Added logic to auto open log file dialog window if file logging is checked and a start logging event occurs.
This commit is contained in:
parent
4fc2224309
commit
896a979689
|
@ -354,9 +354,18 @@ void TraceLoggerDialog_t::toggleLoggingOnOff(void)
|
|||
usleep( 1000 );
|
||||
pushMsgToLogBuffer("Logging Finished");
|
||||
startStopButton->setText( tr("Start Logging") );
|
||||
|
||||
if ( logFile )
|
||||
{
|
||||
fclose( logFile ); logFile = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( logFileCbox->isChecked() )
|
||||
{
|
||||
openLogFile();
|
||||
}
|
||||
pushMsgToLogBuffer("Log Start");
|
||||
startStopButton->setText( tr("Stop Logging") );
|
||||
logging = 1;
|
||||
|
|
Loading…
Reference in New Issue