mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-14 17:26:27 -04:00
Split EditWidgetIcons::save() into state() and reset().
This commit is contained in:
parent
61ce733c6f
commit
8f87b5cfd4
4 changed files with 12 additions and 8 deletions
|
@ -113,7 +113,7 @@ void EditGroupWidget::save()
|
|||
m_group->setDefaultAutoTypeSequence(m_mainUi->autoTypeSequenceCustomEdit->text());
|
||||
}
|
||||
|
||||
IconStruct iconStruct = m_editGroupWidgetIcons->save();
|
||||
IconStruct iconStruct = m_editGroupWidgetIcons->state();
|
||||
|
||||
if (iconStruct.number < 0) {
|
||||
m_group->setIcon(Group::DefaultIconNumber);
|
||||
|
@ -144,6 +144,7 @@ void EditGroupWidget::clear()
|
|||
{
|
||||
m_group = nullptr;
|
||||
m_database = nullptr;
|
||||
m_editGroupWidgetIcons->reset();
|
||||
}
|
||||
|
||||
void EditGroupWidget::addTriStateItems(QComboBox* comboBox, bool inheritDefault)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue