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

This commit is contained in:
Felix Geyer authored and Jonathan White committed 2016-10-02 21:45:54 -04:00
1 parent 61ce733c6f
commit 8f87b5cfd4
4 files changed
+12 -8

No files matched your search

+2 -1
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)