From kde-commits Sun Feb 27 19:17:45 2005 From: Esben Mose Hansen Date: Sun, 27 Feb 2005 19:17:45 +0000 To: kde-commits Subject: kdebase/klipper Message-Id: <20050227191745.160ED148A2 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=110953187821425 CVS commit by esben: Only popup action selection if the clipboard item is different from the last. BUGS: 94330 M +7 -3 toplevel.cpp 1.173 --- kdebase/klipper/toplevel.cpp #1.172:1.173 @@ -842,8 +842,12 @@ void KlipperWidget::checkClipData( bool QString text; QTextDrag::decode( data, text ); + const HistoryStringItem* topItem = dynamic_cast( history()->first() ); + if ( !topItem || text != topItem->text() ) { if ( myURLGrabber->checkNewData( text ) ) { return; // don't add into the history } + + } }