diff options
Diffstat (limited to 'src/designer/src/lib/shared/qdesigner_toolbar.cpp')
-rw-r--r-- | src/designer/src/lib/shared/qdesigner_toolbar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/designer/src/lib/shared/qdesigner_toolbar.cpp b/src/designer/src/lib/shared/qdesigner_toolbar.cpp index 5e8eeccdd..f441f1fe2 100644 --- a/src/designer/src/lib/shared/qdesigner_toolbar.cpp +++ b/src/designer/src/lib/shared/qdesigner_toolbar.cpp @@ -195,7 +195,7 @@ void ToolBarEventFilter::slotRemoveSelectedAction() const ActionList actions = m_toolBar->actions(); const int pos = actions.indexOf(a); QAction *action_before = nullptr; - if (pos != -1 && actions.count() > pos + 1) + if (pos != -1 && actions.size() > pos + 1) action_before = actions.at(pos + 1); RemoveActionFromCommand *cmd = new RemoveActionFromCommand(fw); |