From 9efa98c49988a41de7613f56818f2e31bb24e22b Mon Sep 17 00:00:00 2001 From: mickeyl Date: Mon, 03 May 2004 13:21:26 +0000 Subject: honor limited buffer size, if set --- (limited to 'noncore') diff --git a/noncore/net/wellenreiter/gui/packetview.cpp b/noncore/net/wellenreiter/gui/packetview.cpp index f0f16ff..69438fa 100644 --- a/noncore/net/wellenreiter/gui/packetview.cpp +++ b/noncore/net/wellenreiter/gui/packetview.cpp @@ -77,9 +77,11 @@ void PacketView::add( const OPacket* p, int size ) _packets.append( p ); } else - // limited buffer, limit = size - if ( _packets.count() < size ) - { + { // limited buffer, limit = size + while ( _packets.count() >= size ) + { + _packets.removeFirst(); + } _packets.append( p ); } -- cgit v0.9.0.2