summaryrefslogtreecommitdiffstats
path: root/src/designer/src/lib/shared/formlayoutmenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/designer/src/lib/shared/formlayoutmenu.cpp')
-rw-r--r--src/designer/src/lib/shared/formlayoutmenu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/designer/src/lib/shared/formlayoutmenu.cpp b/src/designer/src/lib/shared/formlayoutmenu.cpp
index 8d4bab6c7..48d6ee488 100644
--- a/src/designer/src/lib/shared/formlayoutmenu.cpp
+++ b/src/designer/src/lib/shared/formlayoutmenu.cpp
@@ -476,7 +476,7 @@ void FormLayoutMenu::populate(QWidget *w, QDesignerFormWindowInterface *fw, Acti
{
switch (LayoutInfo::managedLayoutType(fw->core(), w)) {
case LayoutInfo::Form:
- if (!actions.empty() && !actions.back()->isSeparator())
+ if (!actions.isEmpty() && !actions.constLast()->isSeparator())
actions.push_back(m_separator1);
actions.push_back(m_populateFormAction);
actions.push_back(m_separator2);