diff options
Diffstat (limited to 'Swift/QtUI/QtWebView.cpp')
-rw-r--r-- | Swift/QtUI/QtWebView.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Swift/QtUI/QtWebView.cpp b/Swift/QtUI/QtWebView.cpp index 717310b..b8eb7a5 100644 --- a/Swift/QtUI/QtWebView.cpp +++ b/Swift/QtUI/QtWebView.cpp @@ -55,11 +55,10 @@ void QtWebView::contextMenuEvent(QContextMenuEvent* ev) { QMenu* menu = page()->createStandardContextMenu(); QList<QAction*> actions(menu->actions()); - for (int i = 0; i < actions.size(); ++i) { - QAction* action = actions.at(i); + for (auto action : actions) { bool removeAction = true; - for(size_t j = 0; j < filteredActions.size(); ++j) { - if (action == pageAction(filteredActions[j])) { + for(auto& filteredAction : filteredActions) { + if (action == pageAction(filteredAction)) { removeAction = false; break; } |