-rw-r--r-- | kaddressbook/undocmds.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kaddressbook/undocmds.cpp b/kaddressbook/undocmds.cpp index 5fbeec3..5807dc0 100644 --- a/kaddressbook/undocmds.cpp +++ b/kaddressbook/undocmds.cpp @@ -38,3 +38,3 @@ #include "undocmds.h" - +extern bool pasteWithNewUid; ///////////////////////////////// @@ -114,3 +114,4 @@ void PwPasteCommand::redo() */ - (*it).setUid( KApplication::randomString( 10 ) ); + if ( pasteWithNewUid ) + (*it).setUid( KApplication::randomString( 10 ) ); uids.append( (*it).uid() ); |