diff --git a/src/frontends/qt2/QLPopupMenu.C b/src/frontends/qt2/QLPopupMenu.C index 751715b93c..02b94bfa11 100644 --- a/src/frontends/qt2/QLPopupMenu.C +++ b/src/frontends/qt2/QLPopupMenu.C @@ -89,7 +89,7 @@ void QLPopupMenu::populate(Menu * menu) if (m->kind() == MenuItem::Separator) { insertSeparator(); } else if (m->kind() == MenuItem::Submenu) { - pair res = createMenu(this, m, owner_); + pair res = createMenu(this, &(*m), owner_); setItemEnabled(res.first, !disabled(m->submenu())); res.second->populate(m->submenu()); } else {