mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Fix modify entry with no parent
This commit is contained in:
@@ -133,6 +133,11 @@ class EntryEditActivity : LockingHideActivity(), IconPickerDialogFragment.IconPi
|
||||
mEntry = mDatabase?.getEntryById(it)
|
||||
mEntry?.let { entry ->
|
||||
mParent = entry.parent
|
||||
// If no parent, add root group as parent
|
||||
if (mParent == null) {
|
||||
mParent = mDatabase?.rootGroup
|
||||
entry.parent = mParent
|
||||
}
|
||||
fillEntryDataInContentsView(entry)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user