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 );
|
usleep( 1000 );
|
||||||
pushMsgToLogBuffer("Logging Finished");
|
pushMsgToLogBuffer("Logging Finished");
|
||||||
startStopButton->setText( tr("Start Logging") );
|
startStopButton->setText( tr("Start Logging") );
|
||||||
|
|
||||||
|
if ( logFile )
|
||||||
|
{
|
||||||
|
fclose( logFile ); logFile = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if ( logFileCbox->isChecked() )
|
||||||
|
{
|
||||||
|
openLogFile();
|
||||||
|
}
|
||||||
pushMsgToLogBuffer("Log Start");
|
pushMsgToLogBuffer("Log Start");
|
||||||
startStopButton->setText( tr("Stop Logging") );
|
startStopButton->setText( tr("Stop Logging") );
|
||||||
logging = 1;
|
logging = 1;
|
||||||
|
|
Loading…
Reference in New Issue