mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-06 22:17:39 +03:00
Add "Apply" button to entry and group edit windows (#624)
This commit is contained in:
parent
107684e393
commit
6ffca842e6
8 changed files with 33 additions and 11 deletions
|
@ -75,8 +75,9 @@ EditEntryWidget::EditEntryWidget(QWidget* parent)
|
|||
setupProperties();
|
||||
setupHistory();
|
||||
|
||||
connect(this, SIGNAL(accepted()), SLOT(saveEntry()));
|
||||
connect(this, SIGNAL(accepted()), SLOT(acceptEntry()));
|
||||
connect(this, SIGNAL(rejected()), SLOT(cancel()));
|
||||
connect(this, SIGNAL(apply()), SLOT(saveEntry()));
|
||||
connect(m_iconsWidget, SIGNAL(messageEditEntry(QString, MessageWidget::MessageType)), SLOT(showMessage(QString, MessageWidget::MessageType)));
|
||||
connect(m_iconsWidget, SIGNAL(messageEditEntryDismiss()), SLOT(hideMessage()));
|
||||
|
||||
|
@ -439,9 +440,12 @@ void EditEntryWidget::saveEntry()
|
|||
if (!m_create) {
|
||||
m_entry->endUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
void EditEntryWidget::acceptEntry()
|
||||
{
|
||||
saveEntry();
|
||||
clear();
|
||||
|
||||
emit editFinished(true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue