From 9a90061115ee2cac8adc5b2d21e607b6c5c9b890 Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 05 Jul 2004 14:16:54 +0000 Subject: Improved pasting of many items --- (limited to 'kaddressbook/undocmds.cpp') diff --git a/kaddressbook/undocmds.cpp b/kaddressbook/undocmds.cpp index db773be..5fbeec3 100644 --- a/kaddressbook/undocmds.cpp +++ b/kaddressbook/undocmds.cpp @@ -116,10 +116,11 @@ void PwPasteCommand::redo() uids.append( (*it).uid() ); mCore->addressBook()->insertAddressee( *it ); } - - QStringList::Iterator uidIt; - for ( uidIt = uids.begin(); uidIt != uids.end(); ++uidIt ) - mCore->editContact( *uidIt ); + if ( uids.count() < 4 ) { + QStringList::Iterator uidIt; + for ( uidIt = uids.begin(); uidIt != uids.end(); ++uidIt ) + mCore->editContact( *uidIt ); + } } ///////////////////////////////// -- cgit v0.9.0.2