1
0
mirror of https://github.com/altlinux/admc.git synced 2025-03-26 10:50:43 +03:00

add protection edit to ou create dialog

This commit is contained in:
Dmitry Degtyarev 2021-08-20 16:18:31 +04:00
parent e10f6619b8
commit e4e2c479a7

View File

@ -27,6 +27,7 @@
#include "edits/password_edit.h"
#include "edits/string_edit.h"
#include "edits/upn_edit.h"
#include "edits/protect_deletion_edit.h"
#include "globals.h"
#include "settings.h"
#include "status.h"
@ -188,6 +189,9 @@ CreateObjectDialog::CreateObjectDialog(const QString &parent_dn_arg, const QStri
});
} else if (object_class == CLASS_OU) {
edits_layout->addRow(tr("Name:"), name_edit);
auto protect_deletion_edit = new ProtectDeletionEdit(&all_edits, this);
protect_deletion_edit->add_to_layout(edits_layout);
} else {
qWarning() << "Class" << object_class << "is unsupported by create dialog";
return;