From e4e2c479a735d220cf4b786c5f051fb4b52d6d35 Mon Sep 17 00:00:00 2001 From: Dmitry Degtyarev Date: Fri, 20 Aug 2021 16:18:31 +0400 Subject: [PATCH] add protection edit to ou create dialog --- src/admc/create_object_dialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/admc/create_object_dialog.cpp b/src/admc/create_object_dialog.cpp index 4274f3a9..3c6f4c2c 100644 --- a/src/admc/create_object_dialog.cpp +++ b/src/admc/create_object_dialog.cpp @@ -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;