mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-15 17:27:43 -05:00
Use common EditEntryWidget::clear() method.
This commit is contained in:
parent
bed58cde84
commit
b9c9c56059
@ -384,10 +384,7 @@ void EditEntryWidget::setForms(const Entry* entry, bool restore)
|
|||||||
void EditEntryWidget::saveEntry()
|
void EditEntryWidget::saveEntry()
|
||||||
{
|
{
|
||||||
if (m_history) {
|
if (m_history) {
|
||||||
m_entry = Q_NULLPTR;
|
clear();
|
||||||
m_database = Q_NULLPTR;
|
|
||||||
m_entryAttributes->clear();
|
|
||||||
m_entryAttachments->clear();
|
|
||||||
Q_EMIT editFinished(false);
|
Q_EMIT editFinished(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user