Fix history copy

This commit is contained in:
J-Jamet
2019-11-01 15:43:08 +01:00
parent b129f220f7
commit c0f8cca7c6
2 changed files with 1 additions and 2 deletions

View File

@@ -24,7 +24,6 @@ import android.util.Log
import com.kunzisoft.keepass.database.element.*
import com.kunzisoft.keepass.database.exception.CopyDatabaseEntryException
import com.kunzisoft.keepass.database.exception.CopyDatabaseGroupException
import com.kunzisoft.keepass.database.exception.LoadDatabaseException
class CopyNodesRunnable constructor(
context: Context,

View File

@@ -633,7 +633,7 @@ class Database {
* @param newParent
*/
fun copyEntryTo(entryToCopy: EntryVersioned, newParent: GroupVersioned): EntryVersioned? {
val entryCopied = EntryVersioned(entryToCopy)
val entryCopied = EntryVersioned(entryToCopy, false)
entryCopied.nodeId = pwDatabaseV3?.newEntryId() ?: pwDatabaseV4?.newEntryId() ?: PwNodeIdUUID()
entryCopied.parent = newParent
entryCopied.title += " (~)"