From cbc789907408fa3359444c464ba5a86be892f301 Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 12 Jul 2004 12:43:54 +0000 Subject: Windows import fixes --- (limited to 'kaddressbook/undocmds.cpp') diff --git a/kaddressbook/undocmds.cpp b/kaddressbook/undocmds.cpp index 5fbeec3..5807dc0 100644 --- a/kaddressbook/undocmds.cpp +++ b/kaddressbook/undocmds.cpp @@ -36,7 +36,7 @@ #include "kabcore.h" #include "undocmds.h" - +extern bool pasteWithNewUid; ///////////////////////////////// // PwDelete Methods @@ -112,7 +112,8 @@ void PwPasteCommand::redo() /* we have to set a new uid for the contact, otherwise insertAddressee() ignore it. */ - (*it).setUid( KApplication::randomString( 10 ) ); + if ( pasteWithNewUid ) + (*it).setUid( KApplication::randomString( 10 ) ); uids.append( (*it).uid() ); mCore->addressBook()->insertAddressee( *it ); } -- cgit v0.9.0.2