mirror of
https://github.com/altlinux/admc.git
synced 2024-10-26 17:25:38 +03:00
add comment
This commit is contained in:
parent
547e89494c
commit
eb45bbad48
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user