mirror of
https://github.com/altlinux/admc.git
synced 2025-03-25 22:50:40 +03:00
fix some AD functions failing when they shouldn't
only fail if error code is not AD_SUCCESS
This commit is contained in:
parent
7e93c560d1
commit
3692fc57ff
@ -98,8 +98,9 @@ QList<QString> load_children(const QString &dn) {
|
||||
|
||||
return children;
|
||||
} else {
|
||||
// TODO: is this still a fail if there are no children?
|
||||
emit ad_interface.load_children_failed(dn, get_error_str());
|
||||
if (conn->get_errcode() != AD_SUCCESS) {
|
||||
emit ad_interface.load_children_failed(dn, get_error_str());
|
||||
}
|
||||
|
||||
return QList<QString>();
|
||||
}
|
||||
@ -142,7 +143,7 @@ void load_attributes(const QString &dn) {
|
||||
attributes_loaded.insert(dn);
|
||||
|
||||
emit ad_interface.load_attributes_complete(dn);
|
||||
} else {
|
||||
} else if (conn->get_errcode() != AD_SUCCESS) {
|
||||
emit ad_interface.load_attributes_failed(dn, get_error_str());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user