mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-24 02:51:38 -08:00
Add "Apply" button to entry and group edit windows (#624)
This commit is contained in:
1 parent
107684e393
commit
6ffca842e6
8 files changed
+33
-11
No files matched your search
@@ -18,6 +18,7 @@
|
||||
#include "EditWidget.h"
|
||||
#include "ui_EditWidget.h"
|
||||
#include <QScrollArea>
|
||||
#include <QPushButton>
|
||||
|
||||
#include "core/FilePath.h"
|
||||
|
||||
@@ -102,7 +103,10 @@ void EditWidget::setReadOnly(bool readOnly)
|
||||
m_ui->buttonBox->setStandardButtons(QDialogButtonBox::Close);
|
||||
}
|
||||
else {
|
||||
m_ui->buttonBox->setStandardButtons(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
||||
m_ui->buttonBox->setStandardButtons(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Apply);
|
||||
// Find and connect the apply button
|
||||
QPushButton* applyButton = m_ui->buttonBox->button(QDialogButtonBox::Apply);
|
||||
connect(applyButton, SIGNAL(clicked()), SIGNAL(apply()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user