mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Add "Apply" button to entry and group edit windows (#624)
This commit is contained in:
@@ -42,6 +42,7 @@ EditGroupWidget::EditGroupWidget(QWidget* parent)
|
||||
connect(m_mainUi->autoTypeSequenceCustomRadio, SIGNAL(toggled(bool)),
|
||||
m_mainUi->autoTypeSequenceCustomEdit, SLOT(setEnabled(bool)));
|
||||
|
||||
connect(this, SIGNAL(apply()), SLOT(apply()));
|
||||
connect(this, SIGNAL(accepted()), SLOT(save()));
|
||||
connect(this, SIGNAL(rejected()), SLOT(cancel()));
|
||||
|
||||
@@ -101,6 +102,13 @@ void EditGroupWidget::loadGroup(Group* group, bool create, Database* database)
|
||||
}
|
||||
|
||||
void EditGroupWidget::save()
|
||||
{
|
||||
apply();
|
||||
clear();
|
||||
emit editFinished(true);
|
||||
}
|
||||
|
||||
void EditGroupWidget::apply()
|
||||
{
|
||||
m_group->setName(m_mainUi->editName->text());
|
||||
m_group->setNotes(m_mainUi->editNotes->toPlainText());
|
||||
@@ -128,9 +136,6 @@ void EditGroupWidget::save()
|
||||
else {
|
||||
m_group->setIcon(iconStruct.uuid);
|
||||
}
|
||||
|
||||
clear();
|
||||
emit editFinished(true);
|
||||
}
|
||||
|
||||
void EditGroupWidget::cancel()
|
||||
|
||||
Reference in New Issue
Block a user