Download favorite icon of entry url and add to the custom icon registry (#30)

* Favicon download button.
* Simplified icon grabbing code
This commit is contained in:
Jonathan White 2016-10-05 23:10:06 -04:00 committed by GitHub
parent 6ac773d5ae
commit c4b3f08618
4 changed files with 95 additions and 15 deletions

View file

@ -348,7 +348,8 @@ void EditEntryWidget::setForms(const Entry* entry, bool restore)
IconStruct iconStruct;
iconStruct.uuid = entry->iconUuid();
iconStruct.number = entry->iconNumber();
m_iconsWidget->load(entry->uuid(), m_database, iconStruct);
m_iconsWidget->load(entry->uuid(), m_database, iconStruct, entry->url());
connect(m_mainUi->urlEdit, SIGNAL(textChanged(QString)), m_iconsWidget, SLOT(setUrl(QString)));
m_autoTypeUi->enableButton->setChecked(entry->autoTypeEnabled());
if (entry->defaultAutoTypeSequence().isEmpty()) {