Split EditWidgetIcons::save() into state() and reset().

This commit is contained in:
Felix Geyer
2016-07-31 23:53:26 +02:00
committed by Jonathan White
parent 61ce733c6f
commit 8f87b5cfd4
4 changed files with 12 additions and 8 deletions

View File

@@ -430,7 +430,7 @@ void EditEntryWidget::saveEntry()
m_entry->attributes()->copyCustomKeysFrom(m_entryAttributes);
m_entry->attachments()->copyDataFrom(m_entryAttachments);
IconStruct iconStruct = m_iconsWidget->save();
IconStruct iconStruct = m_iconsWidget->state();
if (iconStruct.number < 0) {
m_entry->setIcon(Entry::DefaultIconNumber);
@@ -489,6 +489,7 @@ void EditEntryWidget::clear()
m_entryAttachments->clear();
m_autoTypeAssoc->clear();
m_historyModel->clear();
m_iconsWidget->reset();
}
void EditEntryWidget::togglePasswordGeneratorButton(bool checked)