Use common EditEntryWidget::clear() method.

This commit is contained in:
Felix Geyer 2015-05-03 18:58:44 +02:00
parent bed58cde84
commit b9c9c56059

View File

@ -384,10 +384,7 @@ void EditEntryWidget::setForms(const Entry* entry, bool restore)
void EditEntryWidget::saveEntry()
{
if (m_history) {
m_entry = Q_NULLPTR;
m_database = Q_NULLPTR;
m_entryAttributes->clear();
m_entryAttachments->clear();
clear();
Q_EMIT editFinished(false);
return;
}