1
0
mirror of https://github.com/altlinux/admc.git synced 2024-10-26 17:25:38 +03:00

add comment

This commit is contained in:
Dmitry Degtyarev 2022-03-16 13:21:57 +04:00
parent 547e89494c
commit eb45bbad48

View File

@ -904,6 +904,11 @@ void ObjectImpl::new_object(const QString &object_class) {
const QString parent_dn = get_action_target_dn_object(console);
// NOTE: creating dialogs here instead of directly
// in "on_new_x" slots looks backwards but it's
// necessary to avoid even more code duplication
// due to having to pass "ad" and "parent_dn" args
// to dialog ctors
CreateObjectDialog *dialog = [&]() -> CreateObjectDialog * {
const bool is_user = (object_class == CLASS_USER);
const bool is_group = (object_class == CLASS_GROUP);