mirror of
https://github.com/altlinux/admc.git
synced 2025-02-09 17:57:28 +03:00
fix "refresh" action for policy ou's
hide this action if policy ou can't be refresh because \ it hasn't been fetched yet
This commit is contained in:
parent
caed3dcdce
commit
651c8cbcec
@ -180,7 +180,10 @@ QSet<StandardAction> PolicyOUImpl::get_standard_actions(const QModelIndex &index
|
||||
|
||||
out.insert(StandardAction_Properties);
|
||||
|
||||
out.insert(StandardAction_Refresh);
|
||||
const bool can_refresh = console_item_get_was_fetched(index);
|
||||
if (can_refresh) {
|
||||
out.insert(StandardAction_Refresh);
|
||||
}
|
||||
out.insert(StandardAction_Rename);
|
||||
out.insert(StandardAction_Delete);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user