summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.cpp11
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
@@ -385,4 +385,11 @@ void Wellenreiter::timerEvent( QTimerEvent* )
OPacket* p = pcap->next();
- receivePacket( p );
- delete p;
+ if ( !p ) // no more packets available
+ {
+ stopClicked();
+ }
+ else
+ {
+ receivePacket( p );
+ delete p;
+ }
}