Apply Elvis suggestions

This commit is contained in:
Chau Duong 2020-12-27 17:51:16 +00:00 committed by Elvis Angelaccio
parent 238eb86db7
commit 6df591368e

View file

@ -230,9 +230,9 @@ void ContextMenuSettingsPage::showEvent(QShowEvent* event)
ContextMenuSettings::showCopyMoveMenu());
// Add other built-in actions
for (const QString& id : m_actionIds) {
for (const QString& id : qAsConst(m_actionIds)) {
QAction* action = m_actions->action(id);
if (action != nullptr) {
if (action) {
addRow(action->icon().name(), action->text(), id, entryVisible(id));
}
}