summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <[email protected]>2016-05-30 08:44:09 +0200
committerRalf Habacker <[email protected]>2016-06-09 23:39:36 +0200
commite7fffc4bdff971335c8f81aa739517378aeb651a (patch)
treea8a8fe79543e3d4a85227505e344e64040b08978
parenta9da77a561ea7bdbb56d2f6b241964c94bc0a054 (diff)
Fix coverity check CID 161662: Control flow issues (MISSING_BREAK)
This is not really a bug; the fix makes the case more robust. CCBUG:340646
-rw-r--r--umbrello/listpopupmenu.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/umbrello/listpopupmenu.cpp b/umbrello/listpopupmenu.cpp
index 7871d91..4e33919 100644
--- a/umbrello/listpopupmenu.cpp
+++ b/umbrello/listpopupmenu.cpp
@@ -1577,6 +1577,9 @@ void ListPopupMenu::insertSubMenuNew(MenuType type)
break;
case mt_On_Sequence_Diagram:
insert(mt_Import_from_File, menu, Icon_Utils::SmallIcon(Icon_Utils::it_Import_File), i18n("Import stack trace..."));
+ insert(mt_Object, menu, Icon_Utils::SmallIcon(Icon_Utils::it_Object), i18n("Object..."));
+ insert(mt_FloatText, menu);
+ break;
case mt_On_Collaboration_Diagram:
insert(mt_Object, menu, Icon_Utils::SmallIcon(Icon_Utils::it_Object), i18n("Object..."));
insert(mt_FloatText, menu);