@@ -248,8 +248,8 @@ void MainWindow::setup_ui()
248248 connect (&_event, SIGNAL (show_error (QString)), this , SLOT (on_show_error (QString)));
249249 connect (&_event, SIGNAL (signals_changed ()), this , SLOT (on_signals_changed ()));
250250 connect (&_event, SIGNAL (receive_trigger (quint64)), this , SLOT (on_receive_trigger (quint64)));
251- connect (&_event, SIGNAL (frame_ended ()), this , SLOT (on_frame_ended ()));
252- connect (&_event, SIGNAL (frame_began ()), this , SLOT (on_frame_began ()));
251+ connect (&_event, SIGNAL (frame_ended ()), this , SLOT (on_frame_ended ()), Qt::DirectConnection );
252+ connect (&_event, SIGNAL (frame_began ()), this , SLOT (on_frame_began ()), Qt::DirectConnection );
253253 connect (&_event, SIGNAL (decode_done ()), this , SLOT (on_decode_done ()));
254254 connect (&_event, SIGNAL (data_updated ()), this , SLOT (on_data_updated ()));
255255 connect (&_event, SIGNAL (cur_snap_samplerate_changed ()), this , SLOT (on_cur_snap_samplerate_changed ()));
@@ -674,24 +674,6 @@ void MainWindow::on_session_error()
674674 title = tr (" Malloc Error" );
675675 details = tr (" Memory is not enough for this sample!\n Please reduce the sample depth!" );
676676 break ;
677- case SigSession::Test_data_err:
678- _session->set_repeating (false );
679- _session->stop_capture ();
680- _sampling_bar->set_sampling (false );
681- _session->capture_state_changed (SigSession::Stopped);
682- title = tr (" Data Error" );
683- error_pattern = _session->get_error_pattern ();
684- for (int i = 0 ; i < 16 ; i++) {
685- if (error_pattern & 0x01 )
686- ch_status += " X " ;
687- else
688- ch_status += " " ;
689- ch_status += (i > 9 ? " " : " " );
690- error_pattern >>= 1 ;
691- }
692- details = tr (" the received data are not consist with pre-defined test data!" ) + " \n " +
693- tr (" 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15" )+ " \n " + ch_status;
694- break ;
695677 case SigSession::Pkt_data_err:
696678 title = tr (" Packet Error" );
697679 details = tr (" the content of received packet are not expected!" );
0 commit comments