-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiter.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp index b4b6aa3..0105e09 100644 --- a/noncore/net/wellenreiter/gui/wellenreiter.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp @@ -384,6 +384,13 @@ void Wellenreiter::timerEvent( QTimerEvent* ) qDebug( "Wellenreiter::timerEvent()" ); OPacket* p = pcap->next(); - receivePacket( p ); - delete p; + if ( !p ) // no more packets available + { + stopClicked(); + } + else + { + receivePacket( p ); + delete p; + } } |